public class OmrPagesCollection
extends com.aspose.ms.System.Collections.CollectionBase
Represent a collection of pages in an OMR template
Constructor and Description |
---|
OmrPagesCollection()
Initializes a new instance of the
OmrPagesCollection class. |
OmrPagesCollection(Collection<OmrPage> pages)
Initializes a new instance of the
OmrPagesCollection class. |
Modifier and Type | Method and Description |
---|---|
int |
add(OmrPage value)
Adds an object to the end of the
OmrPagesCollection . |
boolean |
contains(OmrPage value)
Determines whether this
OmrPagesCollection contains the specified OmrPage . |
void |
copyTo(OmrPage[] array,
int index)
Copies the elements of the
OmrPagesCollection to an array,
starting at a particular array index. |
OmrPage |
getItem(int index)
Gets the element at the specified index.
|
int |
indexOf(OmrPage value)
Searches for the specified
OmrPage and returns the zero-based index of
the first occurrence within the entire OmrPagesCollection . |
void |
insert(int index,
OmrPage value)
Inserts the elements of a collection into the
OmrPagesCollection at the specified index. |
protected void |
onValidate(Object value)
Performs additional custom processes when validating a value.
|
void |
remove(OmrPage value)
Removes the first occurrence of a specific
OmrPage from the OmrPagesCollection . |
void |
setItem(int index,
OmrPage value)
Sets the element at the specified index.
|
addItem, clear, contains, copyTo, get_Item, getCapacity, getInnerList, getList, getSyncRoot, indexOf, insertItem, isFixedSize, isReadOnly, isSynchronized, iterator, onClear, onClearComplete, onInsert, onInsertComplete, onRemove, onRemoveComplete, onSet, onSetComplete, removeAt, removeItem, set_Item, setCapacity, size
public OmrPagesCollection()
Initializes a new instance of the OmrPagesCollection
class.
public OmrPagesCollection(Collection<OmrPage> pages)
Initializes a new instance of the OmrPagesCollection
class.
pages
- The ordered collection of pages.public int add(OmrPage value)
Adds an object to the end of the OmrPagesCollection
.
value
- The OmrPage
to be added to the end of the OmrPagesCollection
.
The value cannot be null.OmrPagesCollection
index at which the value
has been added.public boolean contains(OmrPage value)
Determines whether this OmrPagesCollection
contains the specified OmrPage
.
value
- The OmrPage
to locate in the OmrPagesCollection
.true
if this OmrPagesCollection
contains
the specified OmrPage
; otherwise, false
.public void copyTo(OmrPage[] array, int index)
Copies the elements of the OmrPagesCollection
to an array,
starting at a particular array
index.
array
- The one-dimensional array
that is the destination of the elements copied from
OmrPagesCollection
. The array
must have zero-based indexing.index
- The zero-based index in array
at which copying begins.public OmrPage getItem(int index)
Gets the element at the specified index.
index
- The zero-based index of the element to get or set.public int indexOf(OmrPage value)
Searches for the specified OmrPage
and returns the zero-based index of
the first occurrence within the entire OmrPagesCollection
.
value
- The OmrPage
to locate in the OmrPagesCollection
. The value cannot be null.value
within the entire
OmrPagesCollection
, if found; otherwise, -1.public void insert(int index, OmrPage value)
Inserts the elements of a collection into the OmrPagesCollection
at the specified index.
protected void onValidate(Object value)
Performs additional custom processes when validating a value.
onValidate
in class com.aspose.ms.System.Collections.CollectionBase
value
- The object to validate.public void remove(OmrPage value)
Removes the first occurrence of a specific OmrPage
from the OmrPagesCollection
.
value
- The OmrPage
to remove from the OmrPagesCollection
.
The value cannot be null.public void setItem(int index, OmrPage value)
Sets the element at the specified index.
index
- The zero-based index of the element to get or set.Copyright © 2017. All Rights Reserved.