Method Style
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
Style(TextStyle)
Sets the text style.
public TextSpan Style(TextStyle style)
Parameters
style
TextStyleThe text style.
Returns
- TextSpan
The updated text.
Exceptions
- ArgumentNullException
style
isnull
.- ArgumentException
style
or its fallback belongs to a different Document.
Style(Func<Typography, TextStyle>)
Sets the text style.
public TextSpan Style(Func<Typography, TextStyle> provider)
Parameters
provider
Func<Typography, TextStyle>The handler for modifying the current text style.
Returns
- TextSpan
The updated text.
Exceptions
- ArgumentNullException
provider
isnull
.- ArgumentException
provider
returns a text style belonging to a different Document.