ITextChange::OldPosition Property

 

Gets the position of the text change in the snapshot immediately before the change.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

property int OldPosition {
	int get();
}

Property Value

Type: System::Int32

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.

This is the equivalent of OldSpan.Start.

Return to top
Show: