Aracılığıyla paylaş


Span.FromBounds(Int32, Int32) Method

Definition

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

public:
 static Microsoft::VisualStudio::Text::Span FromBounds(int start, int end);
public:
 static Microsoft::VisualStudio::Text::Span FromBounds(int start, int end);
 static Microsoft::VisualStudio::Text::Span FromBounds(int start, int end);
public static Microsoft.VisualStudio.Text.Span FromBounds (int start, int end);
static member FromBounds : int * int -> Microsoft.VisualStudio.Text.Span
Public Shared Function FromBounds (start As Integer, end As Integer) As Span

Parameters

start
Int32

The start position of the new span.

end
Int32

The end position of the new Span.

Returns

The new span.

Exceptions

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

Applies to