PortionCollection
Overview
PortionCollection is a class in Aspose.Slides FOSS for .NET.
Inherits from: ISlideComponent, IPortionCollection, IEnumerable<IPortion>.
Represents a mutable collection of portions belonging to a slide component.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Slide | IBaseSlide? | Read | Gets the slide that owns this portion collection, if any |
Presentation | IPresentation? | Read | Gets the presentation containing the collection, if any |
AsIPresentationComponent | IPresentationComponent | Read | |
AsIEnumerable | IEnumerable<IPortion> | Read | Returns the collection as IEnumerable |
Count | int | Read | Indicates the number of portions in the collection |
IsReadOnly | bool | Read | Reports whether the collection is read‑only |
Methods
| Signature | Description |
|---|---|
GetPortions() | A list of portions read from the XML. |
Add(value: IPortion) | Inserts the specified IPortion into the collection |
IndexOf(item: IPortion) | Returns the zero‑based index of the given IPortion |
Insert(index: int, value: IPortion) | Places the IPortion at the specified index |
Clear() | |
Contains(item: IPortion) | Checks whether the collection includes the IPortion |
Remove(item: IPortion) | Deletes the first occurrence of the specified IPortion |
RemoveAt(index: int) | Deletes the portion at the given index |
GetEnumerator() | Provides an iterator over the collection |