Creates a set of appearance settings with the specified colors, buttons, alignment, visual style, and sorting and filtering states.
Syntax
'Declaration
Public Function New( _
ByVal As Color, _
ByVal As Color, _
ByVal As Font, _
ByVal As CellHorizontalAlignment, _
ByVal As CellVerticalAlignment, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal As VisualStyles, _
ByVal As SortState, _
ByVal As FilterState, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Integer _
)
'Usage
Dim backColor As Color
Dim foreColor As Color
Dim font As Font
Dim horizontalAlignment As CellHorizontalAlignment
Dim verticalAlignment As CellVerticalAlignment
Dim drawPrimaryButton As Boolean
Dim drawSecondaryButton As Boolean
Dim selectionBackColor As Color
Dim selectionForeColor As Color
Dim lockBackColor As Color
Dim lockForeColor As Color
Dim visualStyle As VisualStyles
Dim sortState As SortState
Dim filterState As FilterState
Dim mouseOver As Boolean
Dim showActive As Boolean
Dim displayZero As Boolean
Dim rightToLeft As Boolean
Dim containsSelection As Boolean
Dim textIndent As Integer
Dim instance As New Appearance(backColor, foreColor, font, horizontalAlignment, verticalAlignment, drawPrimaryButton, drawSecondaryButton, selectionBackColor, selectionForeColor, lockBackColor, lockForeColor, visualStyle, sortState, filterState, mouseOver, showActive, displayZero, rightToLeft, containsSelection, textIndent)
public Appearance(
Color ,
Color ,
Font ,
CellHorizontalAlignment ,
CellVerticalAlignment ,
bool ,
bool ,
Color ,
Color ,
Color ,
Color ,
VisualStyles ,
SortState ,
FilterState ,
bool ,
bool ,
bool ,
bool ,
bool ,
int
)
Parameters
- backColor
- Background color of an object
- foreColor
- Foreground (text) color of an object
- font
- Font information of an object
- horizontalAlignment
- Horizontal alignment of an object or of text in a cell
- verticalAlignment
- Vertical alignment of an object or text in a cell
- drawPrimaryButton
- Whether to draw the primary button for an object
- drawSecondaryButton
- Whether to draw the secondary button for an object
- selectionBackColor
- Background color of an object when the object is selected
- selectionForeColor
- Foreground (text) color of an object when the object is selected
- lockBackColor
- Background color of an object when the cell is locked
- lockForeColor
- Foreground (text) color of an object when the cell is locked
- visualStyle
- Whether to render with visual styles (as in XP themes)
- sortState
- Sorting state
- filterState
- Filtering state
- mouseOver
- Whether the mouse is over the item being rendered
- showActive
- Determines whether the item should be rendered as a hot item
- displayZero
- Determines whether zero values are displayed in cells
- rightToLeft
- Whether to draw the object with a right to left orientation
- containsSelection
- if set to
true
[contains selection]. - textIndent
- The text indent.
See Also