public class IntRange extends Object
Class for representing sequence of elements
Constructor and Description |
---|
IntRange(int[] range)
Initializes a new instance of the
IntRange class. |
IntRange(int start,
int count)
Initializes a new instance of the
IntRange class. |
IntRange(int start,
int count,
int delta)
Initializes a new instance of the
IntRange class. |
Modifier and Type | Method and Description |
---|---|
int[] |
getArrayOneItemFromIndex(int index)
Returns one item array from specified index
|
int[] |
getRange()
Gets the range.
|
static int[] |
getRange(int start,
int count,
int delta)
Gets the count range of int elements starting at start
|
void |
setRange(int[] value)
Sets the range.
|
public IntRange(int start, int count)
Initializes a new instance of the IntRange
class.
start
- The start.count
- The count.public IntRange(int start, int count, int delta)
Initializes a new instance of the IntRange
class.
start
- The start.count
- The count.delta
- The delta.public IntRange(int[] range)
Initializes a new instance of the IntRange
class.
range
- The range.public int[] getRange()
Gets the range.
public void setRange(int[] value)
Sets the range.
value
- The range.public int[] getArrayOneItemFromIndex(int index)
Returns one item array from specified index
index
- The range index.System.Int32
IndexOutOFRangeException
- Index is out of rangepublic static int[] getRange(int start, int count, int delta)
Gets the count range of int elements starting at start
start
- The start.count
- The count.delta
- The delta.com.aspose.ms.System.ArgumentException
- Count can not be lover than 1
or
{D255958A-8513-4226-94B9-080D98F904A1}Start page can not be lover than 0