TextLineChange TextLineChange TextLineChange TextLineChange TextLineChange TextLineChange Struct

Definition

Provides settings for tracking changes to any text line in the buffer.

public value class TextLineChange
public value class TextLineChange
struct TextLineChange
public struct TextLineChange
type TextLineChange = struct
Public Structure TextLineChange
Inheritance
TextLineChangeTextLineChangeTextLineChangeTextLineChangeTextLineChangeTextLineChange

Remarks

The TextLineChange structure completely describes a text change. For example, for a Replace operation, the structure defines two spans, as follows:

  • From iStartLine/iStartIndex to iNewEndLine/iNewEndIndex. This span indicates the extent of the newly inserted text in terms of the buffer's current state.

  • From iStartLine/iStartIndex to iOldEndLine/iOldEndIndex. This span describes the extent of the text that was deleted, in terms of the buffer's state before the change.

    Therefore, the structure contains information about the shape of the region before and after the change. The TextLineChange structure does not contain the old text that was deleted.

Fields

iNewEndIndex iNewEndIndex iNewEndIndex iNewEndIndex iNewEndIndex iNewEndIndex

Endpoint of the inserted text.

iNewEndLine iNewEndLine iNewEndLine iNewEndLine iNewEndLine iNewEndLine

End line of the inserted text.

iOldEndIndex iOldEndIndex iOldEndIndex iOldEndIndex iOldEndIndex iOldEndIndex

End point of the deleted text.

iOldEndLine iOldEndLine iOldEndLine iOldEndLine iOldEndLine iOldEndLine

End line of deleted text.

iStartIndex iStartIndex iStartIndex iStartIndex iStartIndex iStartIndex

Start point of the old and new text.

iStartLine iStartLine iStartLine iStartLine iStartLine iStartLine

Start line of the old and new text.

Applies to