Span.FromBounds(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.