Range.EndAt(Index) Range.EndAt(Index) Range.EndAt(Index) Range.EndAt(Index) Method

定义

创建一个 Range 对象,该对象从集合中的第一个元素开始,直至指定的结束索引。Creates a Range object starting from the first element in the collection to a specified end index.

public:
 static Range EndAt(Index end);
public static Range EndAt (Index end);
static member EndAt : Index -> Range
Public Shared Function EndAt (end As Index) As Range

参数

end
Index Index Index Index

将创建 Range 对象的最后一个元素的位置。The position of the last element up to which the Range object will be created.

返回

从第一个元素开始直至 end 的范围。A range that starts from the first element to end.

适用于