Span(Int32, Int32) Constructor
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 point and length.
public:
Span(int start, int length);
public:
Span(int start, int length);
Span(int start, int length);
public Span (int start, int length);
new Microsoft.VisualStudio.Text.Span : int * int -> Microsoft.VisualStudio.Text.Span
Public Sub New (start As Integer, length As Integer)
Parameters
- start
- Int32
The starting point of the span.
- length
- Int32
The length of the span.
Exceptions
start
or length
is less than zero, or
start + length is greater than the length of the text snapshot.