Implements an collection of ascending integers, that are stored in a list of ranges.
Constructor | Description |
Full Usage:
AscendingIntegerRangeCollection()
|
|
Instance member | Description | ||
Full Usage:
this.Add
Parameters:
int
-
The element to add.
|
Adds the specified element. Detail: The element is added as a range with a start value equal to element and a count of 1.
|
||
Full Usage:
this.AddRangeByFirstAndLastInclusive
Parameters:
int
-
First element of the range to add.
lastInclusive : int
-
Last element of the range (inclusive, i.e. this element is included in the range).
|
Adds a range that is specified by a first value and by a last value (inclusive).
|
||
Full Usage:
this.Contains
Parameters:
int
-
The element.
Returns: bool
True if the collection contains the element, otherwise false .
|
Determines whether this collection contains the specified element.
|
||
Full Usage:
this.Contains
Parameters:
int
-
The element.
rangeIndex : byref<int>
-
If the collection contains the element, this value is the index of the range that contains the element.
Returns: bool
True if the collection contains the element, otherwise false .
|
Determines whether this collection contains the specified element.
|
||
Full Usage:
this.Count
Returns: int
|
Gets the number of elements in the collection.
|
||
Full Usage:
this.[arg1]
Parameters:
int
Returns: int
Element at the specified index.
|
|
||
Full Usage:
this.RangeCount
Returns: int
|
Gets the number of ranges in this collection.
|
||
|
Gets the ranges of the collection
|
||
Full Usage:
this.Remove
Parameters:
int
-
The element to remove.
|
Removes the specified element.
|
||
Full Usage:
this.RemoveRangeByFirstAndLastInclusive
Parameters:
int
-
First element of the range to remove.
lastInclusive : int
-
Last element of the range (inclusive, i.e. this element is included in the range).
|
Removes all elements that belong to the provided range that is specified by a first value and by a last value (inclusive).
|