public interface IPortionCollection extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPortion>
Represents a collection of a 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. |
IPortion |
get_Item(int index)
Gets the element at the specified index.
|
int |
getCount()
Gets the number of elements actually contained in the collection.
|
int |
indexOf(IPortion item)
Determines the index of a specific portion in collection.
|
void |
insert(int index,
IPortion value)
Inserts a Portion into the collection at the specified index.
|
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.
|
IPortion get_Item(int index)
Gets the element at the specified index.
int getCount()
Gets the number of elements actually contained in the collection.
Read-only int
.
void add(IPortion value)
Adds a Portion to the end of collection.
value
- The Portion to be added to the end of the collection.int indexOf(IPortion item)
Determines the index of a specific portion in collection.
item
- The portion to locate in the collection.item
if found in the collection; otherwise, -1.void insert(int index, IPortion value)
Inserts a Portion into the collection at the specified index.
index
- The zero-based index at which Portion should be inserted.value
- The Portion to insert.void clear()
Removes all elements from the collection.
boolean contains(IPortion item)
Determines whether the System.Collections.Generic.ICollection`1
contains a specific value.
item
- The object to locate in the System.Collections.Generic.ICollection`1
.item
is found in the System.Collections.Generic.ICollection`1
; otherwise, false.boolean remove(IPortion item)
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection`1
.
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.void removeAt(int index)
Removes the element at the specified index of the collection.
index
- The zero-based index of the element to remove.