TextPosition.Add(Int32) Method
Definition
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 offset from this position.
public Microsoft.VisualStudio.Extensibility.Editor.TextPosition Add (int offset);
member this.Add : int -> Microsoft.VisualStudio.Extensibility.Editor.TextPosition
Public Function Add (offset As Integer) As TextPosition
Parameters
- offset
- Int32
The offset of the new position.
Returns
Exceptions
The new position is less than zero or greater than Snapshot.Length.