Initializes a new instance of the
Font struct.
Syntax
'Declaration
Public Function New( _
ByVal As String, _
ByVal As Double, _
ByVal As FontStyle, _
ByVal As Color, _
Optional ByVal As UnderlineStyle, _
Optional ByVal As VerticalTextAlignment, _
Optional ByVal As ThemeFont _
)
'Usage
Dim name As String
Dim size As Double
Dim fontStyle As FontStyle
Dim color As Color
Dim underline As UnderlineStyle
Dim verTextAlign As VerticalTextAlignment
Dim themeFont As ThemeFont
Dim instance As New Font(name, size, fontStyle, color, underline, verTextAlign, themeFont)
Parameters
- name
- A string value indicates the face name of this Font.
- size
- An double value indicates the em-size of this Font.
- fontStyle
- A FontStyle value indicates style information for this Font.
- color
- A Color value indicates the color of font color.
- underline
- A _fontUnderline value indicates the underline of this Font.
- verTextAlign
- A VerticalTextAlignment value indicates the vertical alignment of this Font.
- themeFont
- A ThemeFont value indicates the theme font.
See Also