Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of a Span with the given start point and length.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Sub New ( _
start As Integer, _
length As Integer _
)
public Span(
int start,
int length
)
public:
Span(
int start,
int length
)
new :
start:int *
length:int -> Span
public function Span(
start : int,
length : int
)
Parameters
- start
Type: System.Int32
The starting point of the span.
- length
Type: System.Int32
The length of the span.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | start or length is less than zero, or (start + length) is greater than the length of the text snapshot. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.