TextSpan.Style Method (Func(Typography, TextStyle))

Sets the text style.

Namespace:  BitMiracle.Docotic.Pdf.Layout
Assembly:  BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)

Syntax

C#
public TextSpan Style(
	Func<Typography, TextStyle> provider
)
VB
Public Function Style ( 
	provider As Func(Of Typography, TextStyle)
) As TextSpan

Parameters

provider
Type: System.Func<Typography, TextStyle>
The handler for modifying the current text style.

Return Value

Type: TextSpan
The updated text.

Exceptions

ExceptionCondition
ArgumentNullExceptionprovider is null.
ArgumentExceptionprovider returns a text style belonging to a different Document.

See Also