Table of Contents

Method TextStyle

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

TextStyle(TextStyle)

Applies the text style.

public LayoutContainer TextStyle(TextStyle textStyle)

Parameters

textStyle TextStyle

The text style.

Returns

LayoutContainer

The nested container with the applied style.

Exceptions

ArgumentNullException

textStyle is null.

ArgumentException

textStyle or its fallback belongs to a different Document.

TextStyle(Func<Typography, TextStyle>)

Applies the text style.

public LayoutContainer TextStyle(Func<Typography, TextStyle> provider)

Parameters

provider Func<Typography, TextStyle>

The provider of the text style using the typography.

Returns

LayoutContainer

The nested container with the applied style.

Exceptions

ArgumentNullException

provider is null.

ArgumentException

provider returns a text style belonging to a different Document.