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)
Syntax
'Declaration
ReadOnly Property OldPosition As Integer
int OldPosition { get; }
property int OldPosition {
int get ();
}
abstract OldPosition : int with get
function get OldPosition () : int
Property Value
Type: Int32
The position of the text change in the snapshot immediately before the change.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.