IPortionCollection class

IPortionCollection class

Represents a collection of a portions.

The IPortionCollection type exposes the following members:

Properties

PropertyDescription
countGets the number of elements actually contained in the collection.
Read-only int.

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 portion in collection.
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.
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