IPortionCollection

IPortionCollection

Overview

IPortionCollection is a interface in Aspose.Slides FOSS for .NET.

Represents a collection of portions.

This interface provides 7 methods for working with IPortionCollection objects in .NET programs. Available methods include: Add, Clear, Contains, IndexOf, Insert, Remove, RemoveAt. All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package. Properties: AsIEnumerable, Count, IsReadOnly.

Properties

NameTypeAccessDescription
CountintReadGets the number of elements actually contained in the collection.
AsIEnumerableIEnumerable<IPortion>ReadReturns IEnumerable{IPortion} interface.
IsReadOnlyboolReadGets a value indicating whether the collection is read-only.

Methods

SignatureDescription
Add(value: IPortion)Adds a portion to the end of the collection.
IndexOf(item: IPortion)Determines the index of a specific portion in the collection.
Insert(index: int, value: IPortion)Inserts a portion into the collection at the specified index.
Clear()Removes all portions from the collection.
Contains(item: IPortion)Determines whether the collection contains a specific portion.
Remove(item: IPortion)Removes the first occurrence of a specific portion from the collection.
RemoveAt(index: int)Removes the portion at the specified index.

See Also