SnapshotSpan Constructor (SnapshotPoint, SnapshotPoint)

 

Initializes a new instance of a SnapshotSpan from two SnapshotPoint objects.

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

public:
SnapshotSpan(
	SnapshotPoint start,
	SnapshotPoint end
)

Parameters

start
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The start point.

end
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The end point, which must be from the same ITextSnapshot as the start point.

Exception Condition
ArgumentException

The snapshot points belong to different ITextSnapshot objects.

ArgumentOutOfRangeException

The end point comes before the start point.

Return to top
Show: