[]
Sets the font.
public virtual void SetFont(object font)
Public Overridable Sub SetFont(font As Object)
| Type | Name | Description |
|---|---|---|
| object | font | Native font object. |
Sets the current font based on the provided parameters.
public void SetFont(string fontName, double fontSize, int fontStyle = 0)
Public Sub SetFont(fontName As String, fontSize As Double, Optional fontStyle As Integer = 0)
| Type | Name | Description |
|---|---|---|
| string | fontName | Font name |
| double | fontSize | Font size |
| int | fontStyle | Font style |
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.