Skip to content

# PDFFormattedParagraphCollection

Namespace: O2S.Components.PDF4NET.Graphics.FormattedContent

Defines a collection of formatted paragraphs.

    public class PDFFormattedParagraphCollection : System.Collections.ObjectModel.Collection`1[[O2S.Components.PDF4NET.Graphics.FormattedContent.PDFFormattedParagraph, O2S.Components.PDF4NET.NetStandard, Version=16.3.0.1, Culture=neutral, PublicKeyToken=80d03dd9e5b85317]]

Inheritance Object → Collection<PDFFormattedParagraph> → PDFFormattedParagraphCollection
Implements

## Properties

### Count

    public int Count { get; }

Property Value

Int32

### Item

    public PDFFormattedParagraph Item { get; set; }

Property Value

PDFFormattedParagraph

## Methods

### Add(String)

Creates a new paragraph with the specified content and adds it to the collection.

    public PDFFormattedParagraph Add(string content)

Parameters

`content` String
Paragraph content.

Returns

PDFFormattedParagraph
The new paragraph.

### Add(PDFFormattedBlock[])

Creates a new paragraph with the specified content and adds it to the collection.

    public PDFFormattedParagraph Add(PDFFormattedBlock[] blocks)

Parameters

`blocks` PDFFormattedBlock[]
Paragraph content.

Returns

PDFFormattedParagraph
The new paragraph.