TextPosition.Subtract(Int32) Method

Definition

Creates a new snapshot position at the specified negative offset from this position.

C#
public Microsoft.VisualStudio.Extensibility.Editor.TextPosition Subtract(int offset);

Parameters

offset
Int32

The offset of the new position.

Returns

Exceptions

The new position is less than zero or greater than Snapshot.Length.

Applies to

Produkt Wersje
Visual Studio SDK 2022