Udostępnij za pośrednictwem


Span(Int32, Int32) Constructor

Definition

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.

Applies to