TextLineChange Structure

 

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

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public struct TextLineChange

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from ValueType.)

NameDescription
System_CAPS_pubfieldiNewEndIndex

Endpoint of the inserted text.

System_CAPS_pubfieldiNewEndLine

End line of the inserted text.

System_CAPS_pubfieldiOldEndIndex

End point of the deleted text.

System_CAPS_pubfieldiOldEndLine

End line of deleted text.

System_CAPS_pubfieldiStartIndex

Start point of the old and new text.

System_CAPS_pubfieldiStartLine

Start line of the old and new text.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: