SnapshotPoint::GreaterThan Operator (SnapshotPoint, SnapshotPoint)

 

Determines whether the position of one snapshot point is greater than the position of a second snapshot point.

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

public:
static bool operator >(
	SnapshotPoint left,
	SnapshotPoint right
)

Parameters

left
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The left-hand snapshot point.

right
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The right-hand snapshot point.

Return Value

Type: System::Boolean

true if the first position is greater than the second position, otherwise false.

Exception Condition
ArgumentException

The two points do not belong to the same snapshot.

Return to top
Show: