public final class PortionCollection extends java.lang.Object implements IPortionCollection
Represents a collection of portions.
Modifier and Type | Method and Description |
---|---|
void |
add(IPortion value)
Adds a Portion to the end of collection.
|
void |
clear()
Removes all elements from the collection.
|
boolean |
contains(IPortion item)
Determines whether the
System.Collections.Generic.ICollection`1 contains a specific value. |
void |
copyTo(IPortion[] array,
int arrayIndex)
Copies the elements of the
System.Collections.Generic.ICollection`1 to an Array , starting at a particular Array index. |
IPortion |
get_Item(int index)
Gets the element at the specified index.
|
int |
getCount()
Gets the number of elements actually contained in the collection.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
int |
indexOf(IPortion item)
Determines the index of a specific item in the
System.Collections.Generic.IList`1 . |
void |
insert(int index,
IPortion value)
Inserts a Portion into the collection at the specified index.
|
boolean |
isReadOnly()
Gets a value indicating whether the
System.Collections.Generic.ICollection`1 is read-only. |
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPortion> |
iterator()
Returns an enumerator that iterates through the collection.
|
boolean |
remove(IPortion item)
Removes the first occurrence of a specific object from the
System.Collections.Generic.ICollection`1 . |
void |
removeAt(int index)
Removes the element at the specified index of the collection.
|
void |
set_Item(int index,
IPortion value)
Gets the element at the specified index.
|
public final int getCount()
Gets the number of elements actually contained in the collection.
Read-only int
.
getCount
in interface IPortionCollection
public final boolean isReadOnly()
Gets a value indicating whether the System.Collections.Generic.ICollection`1
is read-only.
Read-only boolean
.
System.Collections.Generic.ICollection`1
is read-only; otherwise, false.public final IPortion get_Item(int index)
Gets the element at the specified index.
get_Item
in interface IPortionCollection
public final void set_Item(int index, IPortion value)
Gets the element at the specified index.
public final void add(IPortion value)
Adds a Portion to the end of collection.
add
in interface IPortionCollection
value
- The Portion to be added to the end of the collection.public final int indexOf(IPortion item)
Determines the index of a specific item in the System.Collections.Generic.IList`1
.
indexOf
in interface IPortionCollection
item
- The object to locate in the System.Collections.Generic.IList`1
.item
if found in the list; otherwise, -1.public final void insert(int index, IPortion value)
Inserts a Portion into the collection at the specified index.
insert
in interface IPortionCollection
index
- The zero-based index at which Portion should be inserted.value
- The Portion to insert.public final void clear()
Removes all elements from the collection.
clear
in interface IPortionCollection
public final boolean contains(IPortion item)
Determines whether the System.Collections.Generic.ICollection`1
contains a specific value.
contains
in interface IPortionCollection
item
- The object to locate in the System.Collections.Generic.ICollection`1
.item
is found in the System.Collections.Generic.ICollection`1
; otherwise, false.public final void copyTo(IPortion[] array, int arrayIndex)
Copies the elements of the System.Collections.Generic.ICollection`1
to an Array
, starting at a particular Array
index.
array
- The one-dimensional Array
that is the destination of the elements copied from System.Collections.Generic.ICollection`1
. The Array
must have zero-based indexing.arrayIndex
- The zero-based index in array
at which copying begins.com.aspose.ms.System.ArgumentNullException
- array
is null.com.aspose.ms.System.ArgumentOutOfRangeException
- arrayIndex
is less than 0.com.aspose.ms.System.ArgumentException
- The number of elements in the source System.Collections.Generic.ICollection`1
is greater than the available space from arrayIndex
to the end of the destination array
.public final boolean remove(IPortion item)
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection`1
.
remove
in interface IPortionCollection
item
- The object to remove from the System.Collections.Generic.ICollection`1
.item
was successfully removed from the System.Collections.Generic.ICollection`1
; otherwise, false. This method also returns false if item
is not found in the original System.Collections.Generic.ICollection`1
.com.aspose.ms.System.NotSupportedException
- The System.Collections.Generic.ICollection`1
is read-only.public final void removeAt(int index)
Removes the element at the specified index of the collection.
removeAt
in interface IPortionCollection
index
- The zero-based index of the element to remove.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPortion> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPortion>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<IPortion>
iterator
in interface java.lang.Iterable<IPortion>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.