Skip to content

PdfFormattedContent Class

Definition

Namespace: Xfinium.Pdf.Graphics.FormattedContent

Defines a piece of formatted content that can be drawn on a page.

C#
public class PdfFormattedContent : Object

Inheritance: Object → PdfFormattedContent

Constructors

Name Description
PdfFormattedContent() Initializes a new PdfFormattedContent object.
PdfFormattedContent(String) Initializes a new PdfFormattedContent object with a text paragraph.
PdfFormattedContent(String,PdfFont) Initializes a new PdfFormattedContent object with a text paragraph.
PdfFormattedContent(PdfFormattedContent) Initializes a new PdfFormattedContent object with another formatted content.

Properties

Name Description
Height Gets the height of the formatted content.
ParagraphHeights Gets the height of each paragraph in the formatted content.
Paragraphs Gets the list of paragraphs.
StructureElement Gets or sets the structure element.
Width Gets the width of the formatted content.

Methods

Name Description
ClearWordWrapState Clears the internal word wrap state.
SplitByBox Gets the formatted content that fits in the given box.
ToString Converts the object to string.
Wrap Executes a wrap operation on the formatted content at the specified width.