Span Constructor (Int32, Int32)

 

Initializes a new instance of a Span with the given start point and length.

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

public:
Span(
	int start,
	int length
)

Parameters

start
Type: System::Int32

The starting point of the span.

length
Type: System::Int32

The length of the span.

Exception Condition
ArgumentOutOfRangeException

start or length is less than zero, or (start + length) is greater than the length of the text snapshot.

Return to top
Show: