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
textStyleTextStyleThe text style.
Returns
- LayoutContainer
The nested container with the applied style.
Exceptions
- ArgumentNullException
textStyleisnull.- ArgumentException
textStyleor its fallback belongs to a different Document.
TextStyle(Func<Typography, TextStyle>)
Applies the text style.
public LayoutContainer TextStyle(Func<Typography, TextStyle> provider)
Parameters
providerFunc<Typography, TextStyle>The provider of the text style using the typography.
Returns
- LayoutContainer
The nested container with the applied style.
Exceptions
- ArgumentNullException
providerisnull.- ArgumentException
providerreturns a text style belonging to a different Document.