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
Show file Open project: VitalElement/AvalonStudio Class Usage Examples

Public Methods

Method 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

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

Deregisters the weak line tracker.
public Deregister ( ) : void
return void

Register() public static method

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
return WeakLineTracker