Udostępnij za pośrednictwem


TextRange.Slice(Int32, Int32) Method

Definition

Create a slice of the current TextRange.

public Microsoft.VisualStudio.Extensibility.Editor.TextRange Slice (int start, int length);
member this.Slice : int * int -> Microsoft.VisualStudio.Extensibility.Editor.TextRange
Public Function Slice (start As Integer, length As Integer) As TextRange

Parameters

start
Int32

The index at which to begin this slice.

length
Int32

The length of the slice.

Returns

A slice that consists of length characters from the current instance starting at index start.

Applies to