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
TextStyleThe text style.
Returns
- PageLayout
The updated page layout.
Remarks
This method allows to override document ((Document)) text styles.
Exceptions
- ArgumentNullException
textStyle
isnull
.- 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
isnull
.- ArgumentException
provider
returns a text style belonging to a different Document.