Method Style
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
Style(TextStyle)
Sets the text style.
public TextPageNumber Style(TextStyle style)
Parameters
styleTextStyleThe text style.
Returns
- TextPageNumber
The updated page number.
Exceptions
- ArgumentNullException
styleisnull.- ArgumentException
styleor its fallback belongs to a different Document.
Style(Func<Typography, TextStyle>)
Sets the text style.
public TextPageNumber Style(Func<Typography, TextStyle> provider)
Parameters
providerFunc<Typography, TextStyle>The handler for modifying the current text style.
Returns
- TextPageNumber
The updated page number.
Exceptions
- ArgumentNullException
providerisnull.- ArgumentException
providerreturns a text style belonging to a different Document.