Paragraphs
Overview
Paragraphs is a class in Aspose.PDF FOSS for .NET.
Inherits from: IList<BaseParagraph>, IReadOnlyList<BaseParagraph>.
Container for paragraph-level content (text fragments, tables, images, header/footer fragments, etc.) attached to a Page, Cell, HeaderFooter or FloatingBox.
This class declares 15 methods for Paragraphs objects in .NET programs.
Available methods include: Add, AddRange, Clear, Clone, Contains, CopyTo, GetEnumerator, GetRange, IndexOf, Insert, InsertRange, Paragraphs, and 3 additional methods.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Count, IsReadOnly.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of paragraphs in the collection. |
IsReadOnly | bool | Read | Gets the is read only. |
Methods
| Signature | Description |
|---|---|
Paragraphs() | Creates an empty paragraph collection. |
Add(paragraph: BaseParagraph) | Appends a paragraph to the end of the collection. |
Insert(index: int, paragraph: BaseParagraph) | Inserts a paragraph at the given zero-based index. |
AddRange(items: IEnumerable<BaseParagraph>) | Appends each paragraph of the sequence in order, as Add does. |
InsertRange(index: int, collection: IEnumerable<BaseParagraph>) | Calls InsertRange(index, collection) on this Paragraphs instance. |
RemoveRange(index: int, count: int) | Drop count entries starting at index. |
GetRange(index: int, count: int) | Slice a sub-range into a new Paragraphs collection. |
Clone() | Shallow copy of the collection (items are shared by reference). |
Clear() | Removes all paragraphs from the collection. |
Contains(item: BaseParagraph) | Returns true when the given paragraph instance is in the collection. |
CopyTo(array: BaseParagraph[], arrayIndex: int) | Copies the paragraphs into an array, starting at the given array index. |
IndexOf(item: BaseParagraph) | Calls IndexOf(item) on this Paragraphs instance. |
Remove(paragraph: BaseParagraph) | Drop the first occurrence of paragraph. |
RemoveAt(index: int) | Calls RemoveAt(index) on this Paragraphs instance. |
GetEnumerator() | Calls GetEnumerator on this Paragraphs instance. |