C# Class AvalonStudio.TextEditor.Document.LineManager

Afficher le fichier Open project: VitalElement/AvalonStudio Class Usage Examples

Méthodes publiques

Méthode Description
ChangeComplete ( DocumentChangeEventArgs e ) : void
Insert ( int offset, ITextSource text ) : void
LineManager ( DocumentLineTree documentLineTree, TextDocument document ) : System.Collections.Generic
Rebuild ( ) : void
Remove ( int offset, int length ) : void

Gets the list of lines deleted since the last RetrieveChangedLines() call. The returned list is unsorted.

Gets the list of lines changed since the last RetrieveChangedLines() call. The returned list is sorted by line number and does not contain deleted lines.

Gets the list of lines changed since the last RetrieveDeletedOrChangedLines() call. The returned list is not sorted.

Private Methods

Méthode Description
InsertLineAfter ( DocumentLine line, int length ) : DocumentLine
RemoveLine ( DocumentLine lineToRemove ) : void
SetLineLength ( DocumentLine line, int newTotalLength ) : DocumentLine

Sets the total line length and checks the delimiter. This method can cause line to be deleted when it contains a single '\n' character and the previous line ends with '\r'.

UpdateListOfLineTrackers ( ) : void

Method Details

ChangeComplete() public méthode

public ChangeComplete ( DocumentChangeEventArgs e ) : void
e DocumentChangeEventArgs
Résultat void

Insert() public méthode

public Insert ( int offset, ITextSource text ) : void
offset int
text ITextSource
Résultat void

LineManager() public méthode

public LineManager ( DocumentLineTree documentLineTree, TextDocument document ) : System.Collections.Generic
documentLineTree DocumentLineTree
document TextDocument
Résultat System.Collections.Generic

Rebuild() public méthode

public Rebuild ( ) : void
Résultat void

Remove() public méthode

Gets the list of lines deleted since the last RetrieveChangedLines() call. The returned list is unsorted. Gets the list of lines changed since the last RetrieveChangedLines() call. The returned list is sorted by line number and does not contain deleted lines. Gets the list of lines changed since the last RetrieveDeletedOrChangedLines() call. The returned list is not sorted.
public Remove ( int offset, int length ) : void
offset int
length int
Résultat void