[]
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.
Sets current and/or default font.
public void SetFont(Font font, bool init = false)
Public Sub SetFont(font As Font, Optional init As Boolean = False)
| Type | Name | Description |
|---|---|---|
| Font | font | The Font object. |
| bool | init | Flag to set the default font. |