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
| 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. |
AsISlideComponent | ISlideComponent | Read | Gets the as i slide component. |
AsIEnumerable | IEnumerable<IParagraph> | Read | Gets the as i enumerable. |
Count | int | Read | Gets the count. |
IsReadOnly | bool | Read | Gets the is read only. |
Methods
| Signature | Description |
|---|---|
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 |