PortionCollection

PortionCollection class

Represents a collection of portions.

The PortionCollection type exposes the following members:

Properties

Name Description
count Gets the number of elements actually contained in the collection.
Read-only
is_read_only Gets a value indicating whether the list is read-only.
Read-only bool.
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 item in the list.
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.
copy_to(array, array_index) Copies the elements of the list to an array, starting at a particular array index.
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