AvalonEdit
ITextSourceVersion Interface
NamespacesICSharpCode.AvalonEdit.DocumentITextSourceVersion
Represents a version identifier for a text source.
Declaration Syntax
C#Visual BasicVisual C++
public interface ITextSourceVersion
Public Interface ITextSourceVersion
public interface class ITextSourceVersion
Members
All MembersMethods



IconMemberDescription
BelongsToSameDocumentAs(ITextSourceVersion)
Gets whether this checkpoint belongs to the same document as the other checkpoint.

CompareAge(ITextSourceVersion)
Compares the age of this checkpoint to the other checkpoint.

GetChangesTo(ITextSourceVersion)
Gets the changes from this checkpoint to the other checkpoint. If 'other' is older than this checkpoint, reverse changes are calculated.

MoveOffsetTo(ITextSourceVersion, Int32, AnchorMovementType)
Calculates where the offset has moved in the other buffer version.

Remarks
Verions can be used to efficiently detect whether a document has changed and needs reparsing; or even to implement incremental parsers. It is a separate class from ITextSource to allow the GC to collect the text source while the version checkpoint is still in use.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238