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 declares 9 methods for ParagraphCollection objects in .NET programs. Available methods include: Add, Clear, Contains, GetEnumerator, GetParagraphs, IndexOf, Insert, Remove, RemoveAt. 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)When the collection is backed by a text body, the paragraph is written into it.
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

 English