C# 클래스 AvalonStudio.TextEditor.Document.TextAnchorTree

파일 보기 프로젝트 열기: VitalElement/AvalonStudio 1 사용 예제들

공개 메소드들

메소드 설명
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