Initializes a new instance of the
Style class.
Syntax
'Declaration
Public Function New( _
ByVal As Color, _
ByVal As Bevel, _
ByVal As Color, _
ByVal As BorderStyle, _
ByVal As Font, _
ByVal As TextEffect, _
ByVal As Color, _
ByVal As ContentAlignment _
)
'Usage
Dim backColor As Color
Dim bevel As Bevel
Dim borderColor As Color
Dim borderStyle As BorderStyle
Dim font As Font
Dim textEffect As TextEffect
Dim foreColor As Color
Dim contentAlignment As ContentAlignment
Dim instance As New Style(backColor, bevel, borderColor, borderStyle, font, textEffect, foreColor, contentAlignment)
Parameters
- backColor
- The System.Drawing.Color of the background.
- bevel
- The Bevel value that indicates the bevel effect.
- borderColor
- The System.Drawing.Color of the border.
- borderStyle
- The BorderStyle value that indicates the border style.
- font
- The Font value that indicates the font.
- textEffect
- The TextEffect value that indicates the text effect.
- foreColor
- The System.Drawing.Color value of the foreground.
- contentAlignment
- The ContentAlignment value that indicates the content alignment.
See Also