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 provides 14 methods for working with Paragraphs objects in .NET programs.
Available methods include: Add, AddRange, Clear, Clone, Contains, CopyTo, GetEnumerator, GetRange, IndexOf, Insert, InsertRange, Remove, and 2 additional methods.
All 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 count. |
IsReadOnly | bool | Read | Gets the is read only. |
Methods
| Signature | Description |
|---|---|
Add(paragraph: BaseParagraph) | Calls Add on this Paragraphs instance. |
Insert(index: int, paragraph: BaseParagraph) | Calls Insert on this Paragraphs instance. |
AddRange(items: IEnumerable<BaseParagraph>) | Calls AddRange on this Paragraphs instance. |
InsertRange(index: int, collection: IEnumerable<BaseParagraph>) | Calls InsertRange 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() | Calls Clear on this Paragraphs instance. |
Contains(item: BaseParagraph) | Calls Contains on this Paragraphs instance. |
CopyTo(array: BaseParagraph[], arrayIndex: int) | Calls CopyTo on this Paragraphs instance. |
IndexOf(item: BaseParagraph) | Calls IndexOf on this Paragraphs instance. |
Remove(paragraph: BaseParagraph) | Drop the first occurrence of paragraph. |
RemoveAt(index: int) | Calls RemoveAt on this Paragraphs instance. |
GetEnumerator() | Calls GetEnumerator on this Paragraphs instance. |