SnapshotPoint::Subtraction Operator (SnapshotPoint, Int32)

 

Decrements the position of a snapshot point.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

public:
static SnapshotPoint operator -(
	SnapshotPoint point,
	int offset
)

Parameters

point
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The point from which to calculate the new position.

offset
Type: System::Int32

The offset of the new point.

Return Value

Type: Microsoft.VisualStudio.Text::SnapshotPoint

An integer representing the position.

Exception Condition
ArgumentOutOfRangeException

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

Return to top
Show: