ParagraphCollection

ParagraphCollection class

Represents a collection of a paragraphs.

public sealed class ParagraphCollection : DomObject<TextFrame>, IParagraphCollection

Properties

Name Description
Count { get; } Gets the number of elements actually contained in the collection. Read-only Int32.
IsReadOnly { get; } Gets a value indicating whether the ICollection is read-only. Read-only Boolean.
Item { get; } Gets the element at the specified index.

Methods

Name Description
Add(IParagraph) Adds a Paragraph to the end of collection.
Add(IParagraphCollection) Adds a content of ParagraphCollection to the end of collection.
AddFromHtml(string) Adds text from specified html string to the collection.
AddFromHtml(string, IExternalResourceResolver, string) Adds text from specified html string to the collection.
Clear() Removes all elements from the collection.
Contains(IParagraph) Determines whether the ICollection contains a specific value.
CopyTo(IParagraph[], int) Copies the elements of the ICollection to an Array, starting at a particular Array index.
ExportToHtml(int, int, ITextToHtmlConversionOptions) Converts specifying paragraphs to the HTML and returns it as String object.
GetEnumerator() Returns an enumerator that iterates through the collection.
IndexOf(IParagraph) Determines the index of a specific item in the IList.
Insert(int, IParagraph) Inserts a Paragraph into the collection at the specified index.
Insert(int, IParagraphCollection) Inserts a content of ParagraphCollection into the collection at the specified index.
Remove(IParagraph) Removes the first occurrence of a specific object from the ICollection.
RemoveAt(int) Removes the element at the specified index of the collection.

See Also