In This Article

ITextChangeOperation Interface

Provides the base requirements for a single replace operations within a text change.

public interface ITextChangeOperation : 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

DeletedText

Gets the text that was deleted by the operation.

string DeletedText { get; }

Property Value

string:

The text that was deleted by the operation.

InsertedText

Gets the text that was inserted by the operation.

string InsertedText { get; }

Property Value

string:

The text that was inserted by the operation.

IsProgrammaticTextReplacement

Gets whether the operation completely replaces the document's text, and is only caused by using the SetText(string) method.

bool IsProgrammaticTextReplacement { get; }

Property Value

bool:

true if the operation completely replaces the document's text, and is only caused by using the SetText(string) method; otherwise, false.

IsTextReplacement

Gets whether the operation completely replaces the document's text.

bool IsTextReplacement { get; }

Property Value

bool:

true if the operation completely replaces the document's text; otherwise, false.

Inherited Members