C# Class AvalonStudio.TextEditor.Document.TextAnchorTree

Exibir arquivo Open project: VitalElement/AvalonStudio Class Usage Examples

Public Methods

Method Description
CreateAnchor ( int offset ) : TextAnchor
HandleTextChange ( OffsetChangeMapEntry entry, DelayedEvents delayedEvents ) : void
TextAnchorTree ( TextDocument document ) : System.Collections.Generic

Private Methods

Method Description
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

Method Details

CreateAnchor() public method

public CreateAnchor ( int offset ) : TextAnchor
offset int
return TextAnchor

HandleTextChange() public method

public HandleTextChange ( OffsetChangeMapEntry entry, DelayedEvents delayedEvents ) : void
entry OffsetChangeMapEntry
delayedEvents AvalonStudio.TextEditor.Utils.DelayedEvents
return void

TextAnchorTree() public method

public TextAnchorTree ( TextDocument document ) : System.Collections.Generic
document TextDocument
return System.Collections.Generic