TextPosition.Addition(TextPosition, Int32) Operator
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.
Increments the position of a snapshot position.
public static Microsoft.VisualStudio.Extensibility.Editor.TextPosition operator + (Microsoft.VisualStudio.Extensibility.Editor.TextPosition position, int offset);
static member ( + ) : Microsoft.VisualStudio.Extensibility.Editor.TextPosition * int -> Microsoft.VisualStudio.Extensibility.Editor.TextPosition
Public Shared Operator + (position As TextPosition, offset As Integer) As TextPosition
Parameters
- position
- TextPosition
The position from which to calculate the new position.
- offset
- Int32
The offset of the new position.
Returns
Exceptions
The new position is less than zero or greater than Snapshot.Length.