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.
This class provides 9 methods for working with PortionCollection objects in .NET programs.
Available methods include: Add, Clear, Contains, GetEnumerator, GetPortions, IndexOf, Insert, Remove, RemoveAt.
All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package.
Properties: AsIEnumerable, AsIPresentationComponent, Count, IsReadOnly, Presentation, Slide.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Slide | IBaseSlide? | Read | Gets the slide. |
Presentation | IPresentation? | Read | Gets the presentation. |
AsIPresentationComponent | IPresentationComponent | Read | Gets the as i presentation component. |
AsIEnumerable | IEnumerable<IPortion> | Read | Gets the as i enumerable. |
Count | int | Read | Gets the count. |
IsReadOnly | bool | Read | Gets the is read only. |
Methods
| Signature | Description |
|---|---|
GetPortions() | Gets the portions from the underlying XML paragraph element. |
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() | Calls Clear on this PortionCollection instance. |
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 |