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.

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

NameTypeAccessDescription
SlideIBaseSlide?ReadGets the slide.
PresentationIPresentation?ReadGets the presentation.
AsIPresentationComponentIPresentationComponentReadGets the as i presentation component.
AsIEnumerableIEnumerable<IPortion>ReadGets the as i enumerable.
CountintReadGets the count.
IsReadOnlyboolReadGets the is read only.

Methods

SignatureDescription
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

See Also