C# 클래스 ICSharpCode.AvalonEdit.Document.ChangeTrackingCheckpoint

A checkpoint that allows tracking changes to a TextDocument. Use TextDocument.CreateSnapshot(out ChangeTrackingCheckpoint) to create a checkpoint.
파일 보기 프로젝트 열기: kjk/kjkpub 1 사용 예제들

공개 메소드들

메소드 설명
BelongsToSameDocumentAs ( ChangeTrackingCheckpoint other ) : bool

Gets whether this checkpoint belongs to the same document as the other checkpoint.

CompareAge ( ChangeTrackingCheckpoint other ) : int

Compares the age of this checkpoint to the other checkpoint.

This method is thread-safe.

Create ( TextDocument document ) : ChangeTrackingCheckpoint

Creates a change tracking checkpoint for the specified document. This method is thread-safe. If you need a ChangeTrackingCheckpoint that's consistent with a snapshot of the document, use TextDocument.CreateSnapshot(out ChangeTrackingCheckpoint).

GetChangesTo ( ChangeTrackingCheckpoint other ) : IEnumerable

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

This method is thread-safe.

MoveOffsetTo ( ChangeTrackingCheckpoint other, int oldOffset, AnchorMovementType movement ) : int

Calculates where the offset has moved in the other buffer version.

This method is thread-safe.

비공개 메소드들

메소드 설명
Append ( ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs change ) : ChangeTrackingCheckpoint
ChangeTrackingCheckpoint ( object documentIdentifier ) : System
ChangeTrackingCheckpoint ( object documentIdentifier, ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs value, int id ) : System
GetForwardChanges ( ChangeTrackingCheckpoint other ) : IEnumerable

메소드 상세

BelongsToSameDocumentAs() 공개 메소드

Gets whether this checkpoint belongs to the same document as the other checkpoint.
public BelongsToSameDocumentAs ( ChangeTrackingCheckpoint other ) : bool
other ChangeTrackingCheckpoint
리턴 bool

CompareAge() 공개 메소드

Compares the age of this checkpoint to the other checkpoint.
This method is thread-safe.
Raised if 'other' belongs to a different document than this checkpoint.
public CompareAge ( ChangeTrackingCheckpoint other ) : int
other ChangeTrackingCheckpoint
리턴 int

Create() 공개 정적인 메소드

Creates a change tracking checkpoint for the specified document. This method is thread-safe. If you need a ChangeTrackingCheckpoint that's consistent with a snapshot of the document, use TextDocument.CreateSnapshot(out ChangeTrackingCheckpoint).
public static Create ( TextDocument document ) : ChangeTrackingCheckpoint
document TextDocument
리턴 ChangeTrackingCheckpoint

GetChangesTo() 공개 메소드

Gets the changes from this checkpoint to the other checkpoint. If 'other' is older than this checkpoint, reverse changes are calculated.
This method is thread-safe.
Raised if 'other' belongs to a different document than this checkpoint.
public GetChangesTo ( ChangeTrackingCheckpoint other ) : IEnumerable
other ChangeTrackingCheckpoint
리턴 IEnumerable

MoveOffsetTo() 공개 메소드

Calculates where the offset has moved in the other buffer version.
This method is thread-safe.
Raised if 'other' belongs to a different document than this checkpoint.
public MoveOffsetTo ( ChangeTrackingCheckpoint other, int oldOffset, AnchorMovementType movement ) : int
other ChangeTrackingCheckpoint
oldOffset int
movement AnchorMovementType
리턴 int