ITextChangeRangedOperation Interface
Provides the base requirements for a single replace operations within a text change, but without storing the actual text inserted/deleted.
public interface ITextChangeRangedOperation
Remarks
All text change operations are represented in terms of a replace operation.
The StartOffset and StartPosition properties both indicate where the operations occurred.
For delete operations, the InsertionLength is 0.
For insert operations that have no selection of text to be replaced, the DeletionLength is 0.
Properties
DeletionEndOffset
The offset at which the deletion ended.
DeletionEndPosition
The TextPosition at which the deletion ended.
DeletionLength
The number of characters that were deleted.
HasDeletion
Indicates whether the operation deleted any text.
HasInsertion
Indicates whether the operation inserted any text.
InsertionEndOffset
The offset at which the insertion ended.
InsertionEndPosition
The TextPosition at which the insertion ended.
InsertionLength
The number of characters that were inserted.
IsIgnoredForTranslation
Indicates whether the operation is a simple replace such as a character casing update that should be ignored for translation.
bool IsIgnoredForTranslation { get; }
Property Value
- bool:
trueif the operation is a simple replace such as a character casing update that should be ignored for translation; otherwise,false.
LengthDelta
The net change in length to the document after performing the operation.
int LengthDelta { get; }
Property Value
Remarks
This value is the InsertionLength minus the DeletionLength.
LinesDeleted
The number of document lines deleted after performing the operation.
LinesDelta
The net change in document lines after performing the operation.
int LinesDelta { get; }
Property Value
Remarks
This value is the LinesInserted value minus the LinesDeleted value.
LinesInserted
The number of lines inserted after performing the operation.
StartOffset
The offset at which the operation occurred.
StartPosition
The TextPosition at which the operation occurred.