C# Class AvalonStudio.TextEditor.Document.WeakLineTracker

Allows registering a line tracker on a TextDocument using a weak reference from the document to the line tracker.
Inheritance: ILineTracker
Afficher le fichier Open project: VitalElement/AvalonStudio Class Usage Examples

Méthodes publiques

Méthode Description
Deregister ( ) : void

Deregisters the weak line tracker.

Register ( TextDocument textDocument, ILineTracker targetTracker ) : WeakLineTracker

Registers the targetTracker as line tracker for the textDocument. A weak reference to the target tracker will be used, and the WeakLineTracker will deregister itself when the target tracker is garbage collected.

Private Methods

Méthode Description
ILineTracker ( ) : void
ILineTracker ( DocumentChangeEventArgs e ) : void
ILineTracker ( DocumentLine line ) : void
ILineTracker ( DocumentLine insertionPos, DocumentLine newLine ) : void
ILineTracker ( DocumentLine line, int newTotalLength ) : void
WeakLineTracker ( TextDocument textDocument, ILineTracker targetTracker ) : System

Method Details

Deregister() public méthode

Deregisters the weak line tracker.
public Deregister ( ) : void
Résultat void

Register() public static méthode

Registers the targetTracker as line tracker for the textDocument. A weak reference to the target tracker will be used, and the WeakLineTracker will deregister itself when the target tracker is garbage collected.
public static Register ( TextDocument textDocument, ILineTracker targetTracker ) : WeakLineTracker
textDocument TextDocument
targetTracker ILineTracker
Résultat WeakLineTracker