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
TextStyleThe text style.
Returns
- LayoutContainer
The nested container with the applied style.
Exceptions
- ArgumentNullException
textStyle
isnull
.- 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
isnull
.- ArgumentException
provider
returns a text style belonging to a different Document.