In This Article

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

Gets the offset at which the deletion ended.

int DeletionEndOffset { get; }

Property Value

int:

The offset at which the deletion ended.

DeletionEndPosition

Gets the TextPosition at which the deletion ended.

TextPosition DeletionEndPosition { get; }

Property Value

TextPosition:

The TextPosition at which the deletion ended.

DeletionLength

Gets the number of characters that were deleted.

int DeletionLength { get; }

Property Value

int:

The number of characters that were deleted.

HasDeletion

Gets whether the operation deleted any text.

bool HasDeletion { get; }

Property Value

bool:

true if any text was deleted; otherwise, false.

HasInsertion

Gets whether the operation inserted any text.

bool HasInsertion { get; }

Property Value

bool:

true if any text was inserted; otherwise, false.

InsertionEndOffset

Gets the offset at which the insertion ended.

int InsertionEndOffset { get; }

Property Value

int:

The offset at which the insertion ended.

InsertionEndPosition

Gets the TextPosition at which the insertion ended.

TextPosition InsertionEndPosition { get; }

Property Value

TextPosition:

The TextPosition at which the insertion ended.

InsertionLength

Gets the number of characters that were inserted.

int InsertionLength { get; }

Property Value

int:

The number of characters that were inserted.

IsIgnoredForTranslation

Gets 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:

true if the operation is a simple replace such as a character casing update that should be ignored for translation; otherwise, false.

LengthDelta

Gets the net change in length to the document after performing the operation.

int LengthDelta { get; }

Property Value

int:

The net change in length to the document after performing the operation.

Remarks

This value is the InsertionLength minus the DeletionLength.

LinesDeleted

Gets the number of document lines deleted after performing the operation.

int LinesDeleted { get; }

Property Value

int:

The number of document lines deleted after performing the operation.

LinesDelta

Gets the net change in document lines after performing the operation.

int LinesDelta { get; }

Property Value

int:

The net change in document lines after performing the operation.

Remarks

This value is the LinesInserted value minus the LinesDeleted value.

LinesInserted

Gets the number of lines inserted after performing the operation.

int LinesInserted { get; }

Property Value

int:

The number of lines inserted after performing the operation.

StartOffset

Gets the offset at which the operation occurred.

int StartOffset { get; }

Property Value

int:

The offset at which the operation occurred.

StartPosition

Gets the TextPosition at which the operation occurred.

TextPosition StartPosition { get; }

Property Value

TextPosition:

The TextPosition at which the operation occurred.