Class
PdfTextStyleFluent
OfficeIMO.Pdf
The fluent methods of PdfTextStyle, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- PdfTextStyleFluent
Methods
public static PdfTextStyle Color(PdfTextStyle pdfTextStyle, OfficeColor? value) #Sets PdfTextStyle.Color: Default text color. When null, the writer default is used.
Parameters
- pdfTextStyle OfficeIMO.Pdf.PdfTextStyle
- The instance.
- value OfficeIMO.OfficeColor?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Pdf.PdfTextStyle { Color = value }; pdfTextStyle.Color(value);public static PdfTextStyle Font(PdfTextStyle pdfTextStyle, PdfStandardFont value) #Sets PdfTextStyle.Font: Default standard font family.
Parameters
- pdfTextStyle OfficeIMO.Pdf.PdfTextStyle
- The instance.
- value OfficeIMO.Pdf.PdfStandardFont
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Pdf.PdfTextStyle { Font = value }; pdfTextStyle.Font(value);public static PdfTextStyle FontSize(PdfTextStyle pdfTextStyle, OfficeLength value) #Sets PdfTextStyle.FontSize: Default font size in points.
Parameters
- pdfTextStyle OfficeIMO.Pdf.PdfTextStyle
- The instance.
- value OfficeIMO.OfficeLength
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Pdf.PdfTextStyle { FontSize = value }; pdfTextStyle.FontSize(value);