Udostępnij za pośrednictwem


ITextChange3 Interface

Definition

Extends ITextChange2 with an ability to efficiently get a substring of old and new text.

public interface class ITextChange3 : Microsoft::VisualStudio::Text::ITextChange2
public interface class ITextChange3 : Microsoft::VisualStudio::Text::ITextChange2
__interface ITextChange3 : Microsoft::VisualStudio::Text::ITextChange2
public interface ITextChange3 : Microsoft.VisualStudio.Text.ITextChange2
type ITextChange3 = interface
    interface ITextChange2
    interface ITextChange
Public Interface ITextChange3
Implements ITextChange2
Implements

Properties

Delta

The effect On the length of the buffer resulting from this change.

(Inherited from ITextChange)
IsOpaque

Indicates whether the change is opaque. Opaque changes are always replacements in which both the old text and new text are non-empty. The differ from other changes in the manner in which ITrackingPoints and ITrackingSpans behave. When tracking across an opaque replacement, a point or span endpoint that lies within the deleted text will keep the same offset within the inserted text (normally a point would move either to the beginning or end of the inserted text, depending on its tracking mode).

(Inherited from ITextChange2)
LineCountDelta

The effect of this change on the number of lines in the snapshot.

(Inherited from ITextChange)
NewEnd

The end position of the NewText in the snapshot immediately after the text change.

(Inherited from ITextChange)
NewLength

The length of NewText.

(Inherited from ITextChange)
NewPosition

The position of the text change in the snapshot immediately after the change. The position can differ from OldPosition only when there is more than one ITextChange included in moving from one snapshot to the next.

(Inherited from ITextChange)
NewSpan

The span of the ITextChange in the snapshot immediately after the change.

(Inherited from ITextChange)
NewText

The text that replaced the old text.

(Inherited from ITextChange)
OldEnd

The end position of the OldText in the snapshot immediately before the change.

(Inherited from ITextChange)
OldLength

The length of OldText.

(Inherited from ITextChange)
OldPosition

The position of the text change in the snapshot immediately before the change. The position can differ from NewPosition only when there is more than one ITextChange included in moving from one snapshot to the next.

(Inherited from ITextChange)
OldSpan

The span of the text change in the snapshot immediately before the change.

(Inherited from ITextChange)
OldText

The text that was replaced.

(Inherited from ITextChange)

Methods

GetNewText(Span)

The text that replaced the old text, starting at the beginning of the span and having length equal to the length of the span.

GetNewTextAt(Int32)

Gets a character at given position of the text that replaced the old text.

GetOldText(Span)

Gets the text that was replaced, starting at the beginning of the span and having length equal to the length of the span.

GetOldTextAt(Int32)

Gets a character at given position of the text that was replaced.

Applies to