PortionCollection class

PortionCollection class

Represents a collection of portions.

The PortionCollection type exposes the following members:

Properties

PropertyDescription
countGets the number of elements actually contained in the collection.
Read-only int.
is_read_onlyGets a value indicating whether the System.Collections.Generic.ICollection`1 is read-only.
Read-only bool.

Gets the element at the specified index.

Indexer

NameDescription
[index]

Methods

MethodDescription
add(self, value)Adds a Portion to the end of collection.
index_of(self, item)Determines the index of a specific item in the System.Collections.Generic.IList`1.
insert(self, index, value)Inserts a Portion into the collection at the specified index.
clear(self)Removes all elements from the collection.
contains(self, item)Determines whether the System.Collections.Generic.ICollection`1 contains a specific value.
copy_to(self, array, array_index)Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.
remove(self, item)Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection`1.
remove_at(self, index)Removes the element at the specified index of the collection.

See Also