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

The offset at which the deletion ended.

int DeletionEndOffset { get; }

Property Value

int

DeletionEndPosition

The TextPosition at which the deletion ended.

TextPosition DeletionEndPosition { get; }

Property Value

TextPosition

DeletionLength

The number of characters that were deleted.

int DeletionLength { get; }

Property Value

int

HasDeletion

Indicates whether the operation deleted any text.

bool HasDeletion { get; }

Property Value

bool:

true if any text was deleted; otherwise, false.

HasInsertion

Indicates whether the operation inserted any text.

bool HasInsertion { get; }

Property Value

bool:

true if any text was inserted; otherwise, false.

InsertionEndOffset

The offset at which the insertion ended.

int InsertionEndOffset { get; }

Property Value

int

InsertionEndPosition

The TextPosition at which the insertion ended.

TextPosition InsertionEndPosition { get; }

Property Value

TextPosition

InsertionLength

The number of characters that were inserted.

int InsertionLength { get; }

Property Value

int

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:

true if 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

int

Remarks

This value is the InsertionLength minus the DeletionLength.

LinesDeleted

The number of document lines deleted after performing the operation.

int LinesDeleted { get; }

Property Value

int

LinesDelta

The net change in document lines after performing the operation.

int LinesDelta { get; }

Property Value

int

Remarks

This value is the LinesInserted value minus the LinesDeleted value.

LinesInserted

The number of lines inserted after performing the operation.

int LinesInserted { get; }

Property Value

int

StartOffset

The offset at which the operation occurred.

int StartOffset { get; }

Property Value

int

StartPosition

The TextPosition at which the operation occurred.

TextPosition StartPosition { get; }

Property Value

TextPosition

Extension Methods