Udostępnij za pośrednictwem


ITextChange2 Interface

Definition

Extends ITextChange with the concept of an opaque change.

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

Remarks

Opaque changes are replacements in which both the old text and the new text are non-empty.

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).

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)

Applies to