ITextChange.OldSpan Property

Definition

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

public:
 property Microsoft::VisualStudio::Text::Span OldSpan { Microsoft::VisualStudio::Text::Span get(); };
public:
 property Microsoft::VisualStudio::Text::Span OldSpan { Microsoft::VisualStudio::Text::Span get(); };
public Microsoft.VisualStudio.Text.Span OldSpan { get; }
member this.OldSpan : Microsoft.VisualStudio.Text.Span
Public ReadOnly Property OldSpan As Span

Property Value

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

Remarks

This span is empty for a pure insertion. Its start position may differ from NewSpan.Start only when there is more than one ITextChange included in moving from one snapshot to the next.

Applies to