Index(Int32, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new Index with a specified index position and a value that indicates if the index is from the beginning or the end of a collection.
public Index (int value, bool fromEnd = false);
new Index : int * bool -> Index
Public Sub New (value As Integer, Optional fromEnd As Boolean = false)
Parameters
- value
- Int32
The index value. It has to be greater then or equal to zero.
- fromEnd
- Boolean
true
to index from the end of the collection, or false
to index from the beginning of the collection.
Remarks
If the Index is constructed from the end, an index value of 1 points to the last element, and an index value of 0 points beyond the last element.
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre