共用方式為


TextSpan.FromBounds(Int32, Int32) Method

Definition

Creates a new TextSpan from start and end positions as opposed to a position and length.

The returned TextSpan contains the range with start inclusive, and end exclusive.

public:
 static Microsoft::CodeAnalysis::Text::TextSpan FromBounds(int start, int end);
public static Microsoft.CodeAnalysis.Text.TextSpan FromBounds (int start, int end);
static member FromBounds : int * int -> Microsoft.CodeAnalysis.Text.TextSpan
Public Shared Function FromBounds (start As Integer, end As Integer) As TextSpan

Parameters

start
Int32
end
Int32

Returns

Applies to