PortionCollection

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

NameTypeAccessDescription
SlideIBaseSlide?ReadGets the slide that owns this portion collection, if any
PresentationIPresentation?ReadGets the presentation containing the collection, if any
AsIPresentationComponentIPresentationComponentRead
AsIEnumerableIEnumerable<IPortion>ReadReturns the collection as IEnumerable
CountintReadIndicates the number of portions in the collection
IsReadOnlyboolReadReports whether the collection is read‑only

Methods

SignatureDescription
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

See Also