ITextChange.OldSpan Property

Definition

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

C++/CX
public:
 property Microsoft::VisualStudio::Text::Span OldSpan { Microsoft::VisualStudio::Text::Span get(); };

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

Produkt Verzie
Visual Studio SDK 2015, 2017, 2019, 2022