Share via


TextPosition.Addition(TextPosition, Int32) Operator

Definition

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.

Applies to