IPortionCollection

IPortionCollection class

Represents a collection of a portions.

The IPortionCollection type exposes the following members:

Properties

Name Description
count Gets the number of elements actually contained in the collection.
Read-only
as_i_enumerable Returns IEnumerable interface.
Read-only list.

Indexer

Name Description
[index] Gets the element at the specified index.

Methods

Name Description
add(value) Adds a Portion to the end of collection.
index_of(item) Determines the index of a specific portion in collection.
insert(index, value) Inserts a Portion into the collection at the specified index.
clear() Removes all elements from the collection.
contains(item) Determines whether the list contains a specific value.
remove(item) Removes the first occurrence of a specific object from the list.
remove_at(index) Removes the element at the specified index of the collection.

See Also