ParagraphCollection

ParagraphCollection

Overview

ParagraphCollection is a class in Aspose.Slides FOSS for .NET. Inherits from: ISlideComponent, IParagraphCollection, IEnumerable<IParagraph>.

Represents a collection of paragraphs.

This class provides 9 methods for working with ParagraphCollection objects in .NET programs. Available methods include: Add, Clear, Contains, GetEnumerator, GetParagraphs, 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, AsISlideComponent, Count, IsReadOnly, Presentation, and 1 more.

Properties

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

Methods

SignatureDescription
GetParagraphs()Gets the paragraphs from the underlying XML text body element.
Add(value: IParagraph)Inserts the specified IParagraph into the collection
Insert(index: int, value: IParagraph)Calls Insert(index, value) on this ParagraphCollection instance.
Clear()Calls Clear on this ParagraphCollection instance.
RemoveAt(index: int)Deletes the paragraph at the specified index
Remove(item: IParagraph)Deletes the first occurrence of the given IParagraph
Contains(item: IParagraph)Checks if the collection includes the specified IParagraph
IndexOf(item: IParagraph)Returns the zero‑based index of the given IParagraph or -1
GetEnumerator()Returns an enumerator for iterating the paragraphs

See Also