PdfInlineBuilder Class

Builds the runs of text of a paragraph of a flow document, each with its style.

public sealed class PdfInlineBuilder

Methods

NameDescription
LineBreak()Breaks the line.
Link(string, Uri, PdfTextStyle?)Adds text that is a link to a URI: a link annotation over the text, tagged as a link.
Text(string, PdfTextStyle?)Adds text.

Breaks the line.

public PdfInlineBuilder LineBreak()

Returns

PdfInlineBuilder The builder.

Link(string, Uri, PdfTextStyle?)

PdfInlineBuilder.cs

Adds text that is a link to a URI: a link annotation over the text, tagged as a link.

public PdfInlineBuilder Link(string text, Uri uri, PdfTextStyle? style = null)

Parameters

text string
The text.
uri Uri
The absolute URI.
style PdfTextStyle?
The style of the text, or null for blue.

Returns

PdfInlineBuilder The builder.

Exceptions

ArgumentException
The URI is not absolute.

Text(string, PdfTextStyle?)

PdfInlineBuilder.cs

Adds text.

public PdfInlineBuilder Text(string text, PdfTextStyle? style = null)

Parameters

text string
The text. A line feed breaks the line.
style PdfTextStyle?
The style of the text, or null for the style of the paragraph.

Returns

PdfInlineBuilder The builder.