C# Класс AvalonStudio.TextEditor.Document.TextAnchorTree

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateAnchor ( int offset ) : TextAnchor
HandleTextChange ( OffsetChangeMapEntry entry, DelayedEvents delayedEvents ) : void
TextAnchorTree ( TextDocument document ) : System.Collections.Generic

Приватные методы

Метод Описание
AppendTreeToString ( TextAnchorNode node, StringBuilder b, int indent ) : void
CheckNodeProperties ( TextAnchorNode node, TextAnchorNode parentNode, bool parentColor, int blackCount, int &expectedBlackCount ) : void
CheckProperties ( ) : void
CheckProperties ( TextAnchorNode node ) : void
DeleteMarkedNodes ( ) : void
FindActualBeginNode ( TextAnchorNode node ) : TextAnchorNode
FindNode ( int &offset ) : TextAnchorNode

Finds the node at the specified offset. After the method has run, offset is relative to the beginning of the returned node.

FixTreeOnDelete ( TextAnchorNode node, TextAnchorNode parentNode ) : void
FixTreeOnInsert ( TextAnchorNode node ) : void
GetColor ( TextAnchorNode node ) : bool
GetTreeAsString ( ) : string
InsertAsLeft ( TextAnchorNode parentNode, TextAnchorNode newNode ) : void
InsertAsRight ( TextAnchorNode parentNode, TextAnchorNode newNode ) : void
InsertBefore ( TextAnchorNode node, TextAnchorNode newNode ) : void
InsertText ( int offset, int length, bool defaultAnchorMovementIsBeforeInsertion ) : void
Log ( string text ) : void
MarkNodeForDelete ( TextAnchorNode node ) : void
PerformInsertText ( TextAnchorNode beginNode, TextAnchorNode endNode, int length, bool defaultAnchorMovementIsBeforeInsertion ) : void
RemoveNode ( TextAnchorNode removedNode ) : void
ReplaceNode ( TextAnchorNode replacedNode, TextAnchorNode newNode ) : void
RotateLeft ( TextAnchorNode p ) : void
RotateRight ( TextAnchorNode p ) : void
Sibling ( TextAnchorNode node ) : TextAnchorNode
Sibling ( TextAnchorNode node, TextAnchorNode parentNode ) : TextAnchorNode
SwapAnchors ( TextAnchorNode n1, TextAnchorNode n2 ) : void

Swaps the anchors stored in the two nodes.

UpdateAugmentedData ( TextAnchorNode n ) : void

Описание методов

CreateAnchor() публичный Метод

public CreateAnchor ( int offset ) : TextAnchor
offset int
Результат TextAnchor

HandleTextChange() публичный Метод

public HandleTextChange ( OffsetChangeMapEntry entry, DelayedEvents delayedEvents ) : void
entry OffsetChangeMapEntry
delayedEvents AvalonStudio.TextEditor.Utils.DelayedEvents
Результат void

TextAnchorTree() публичный Метод

public TextAnchorTree ( TextDocument document ) : System.Collections.Generic
document TextDocument
Результат System.Collections.Generic