public class OmrElementsCollection
extends com.aspose.ms.System.Collections.CollectionBase
Represents a collection of elements on a page.
Constructor and Description |
---|
OmrElementsCollection()
Initializes a new instance of the
OmrElementsCollection class. |
OmrElementsCollection(Iterable<BasicElement> elements)
Initializes a new instance of the
OmrElementsCollection class. |
Modifier and Type | Method and Description |
---|---|
int |
add(BasicElement value)
Adds an object to the end of the
OmrElementsCollection . |
boolean |
contains(BasicElement value)
Determines whether this
OmrElementsCollection contains
the specified element. |
void |
copyTo(BasicElement[] array,
int index)
Copies the elements of the
OmrElementsCollection to an array ,
starting at a particular array index. |
BasicElement |
getItem(int index)
Gets the element at the specified index.
|
int |
indexOf(BasicElement value)
Searches for the specified element and returns the zero-based index of
the first occurrence within the entire
OmrElementsCollection . |
void |
insert(int index,
BasicElement value)
Inserts the elements of a collection into the
OmrElementsCollection at the specified index. |
protected void |
onValidate(Object value)
Performs additional custom processes when validating a value.
|
void |
remove(BasicElement value)
Removes the first occurrence of a specific
OmrElement from
the OmrElementsCollection . |
void |
setItem(int index,
BasicElement 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 OmrElementsCollection()
Initializes a new instance of the OmrElementsCollection
class.
public OmrElementsCollection(Iterable<BasicElement> elements)
Initializes a new instance of the OmrElementsCollection
class.
elements
- The ordered collection of elements.public int add(BasicElement value)
Adds an object to the end of the OmrElementsCollection
.
value
- The element to be added to the end of the OmrElementsCollection
.
The value cannot be null.OmrElementsCollection
index at which the value
has been added.public boolean contains(BasicElement value)
Determines whether this OmrElementsCollection
contains
the specified element.
value
- The OmrElement
to locate in the OmrElementsCollection
.true
if this OmrElementsCollection
contains
the specified element; otherwise, false
.public void copyTo(BasicElement[] array, int index)
Copies the elements of the OmrElementsCollection
to an array
,
starting at a particular array index.
array
- The one-dimensional array
that is the destination of the elements copied from
OmrElementsCollection
. The array
must have zero-based indexing.index
- The zero-based index in array
at which copying begins.public BasicElement getItem(int index)
Gets the element at the specified index.
index
- The zero-based index of the element to get.public int indexOf(BasicElement value)
Searches for the specified element and returns the zero-based index of
the first occurrence within the entire OmrElementsCollection
.
value
- The element to locate in the OmrElementsCollection
.
The value cannot be null.value
within the entire
OmrElementsCollection
, if found; otherwise, -1.public void insert(int index, BasicElement value)
Inserts the elements of a collection into the OmrElementsCollection
at the specified index.
index
- The zero-based index at which the new elements should be inserted.value
- The element that should be inserted into the OmrElementsCollection
.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(BasicElement value)
Removes the first occurrence of a specific OmrElement
from
the OmrElementsCollection
.
value
- The element to remove from the OmrElementsCollection
.
The value cannot be null.public void setItem(int index, BasicElement value)
Sets the element at the specified index.
index
- The zero-based index of the element to set.value
- The value of the element to set.Copyright © 2017. All Rights Reserved.