Span::FromBounds Method (Int32, Int32)

 

Initializes a new instance of a Span with the given start and end positions.

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

public:
static Span FromBounds(
	int start,
	int end
)

Parameters

start
Type: System::Int32

The start position of the new span.

end
Type: System::Int32

The end position of the new Span.

Return Value

Type: Microsoft.VisualStudio.Text::Span

The new span.

Exception Condition
ArgumentOutOfRangeException

start is less than zero, or end is less than start.

Return to top
Show: