SnapshotSpan Constructor (SnapshotPoint, Int32)

 

Initializes a new instance of a SnapshotSpan from an existing SnapshotPoint and a specified length.

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

public:
SnapshotSpan(
	SnapshotPoint start,
	int length
)

Parameters

start
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The starting snapshot point.

length
Type: System::Int32

The length of the span.

Exception Condition
ArgumentOutOfRangeException

length is negative, or start + length is greater than the length of the snapshot.

Return to top
Show: