Table of Contents

Method TextStyle

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

TextStyle(TextStyle)

Sets the default text style for the page content.

public PageLayout TextStyle(TextStyle textStyle)

Parameters

textStyle TextStyle

The text style.

Returns

PageLayout

The updated page layout.

Remarks

This method allows to override document ((Document)) text styles.

Exceptions

ArgumentNullException

textStyle is null.

ArgumentException

textStyle or its fallback belongs to a different Document.

TextStyle(Func<Typography, TextStyle>)

Sets the default text style for the page content.

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

Parameters

provider Func<Typography, TextStyle>

The provider of the text style using the typography.

Returns

PageLayout

The updated page layout.

Remarks

This method allows to override document ((Document)) text styles.

Exceptions

ArgumentNullException

provider is null.

ArgumentException

provider returns a text style belonging to a different Document.