[]
        
(Showing Draft Content)

C1.Pdf.C1PdfDocument.SetFont

SetFont Method

SetFont(string, double, int)

Sets the current font based on the provided parameters.

Declaration
public void SetFont(string fontName, double fontSize, int fontStyle = 0)
Public Sub SetFont(fontName As String, fontSize As Double, Optional fontStyle As Integer = 0)
Parameters
Type Name Description
string fontName

Font name

double fontSize

Font size

int fontStyle

Font style

Remarks

Font Style: Regular 0 Normal text. Bold 1 Bold text. Italic 2 Italic text. Underline 4 Underlined text. Strikeout 8 Text with a line through the middle.