TextPosition.Subtract(Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new snapshot position at the specified negative offset from this position.
C#
public Microsoft.VisualStudio.Extensibility.Editor.TextPosition Subtract(int offset);
member this.Subtract : int -> Microsoft.VisualStudio.Extensibility.Editor.TextPosition
Public Function Subtract (offset As Integer) As TextPosition
- offset
- Int32
The offset of the new position.
The new position is less than zero or greater than Snapshot.Length.
Produkt | Wersje |
---|---|
Visual Studio SDK | 2022 |