SheetSkin Constructor(String,Color,Color,Color,Int32,Color,GridLines,Color,Color,Color,Color,Color,Color,Boolean,Boolean,Boolean,Boolean,Boolean,Background,Background,Background,Color)
In This Topic
Creates a new skin with the specified settings.
Syntax
'Declaration
Public Function New( _
ByVal As String, _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal As Integer, _
ByVal As Color, _
ByVal As GridLines, _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal flatColumnHeader As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal showColumnHeader As Boolean, _
ByVal As Boolean, _
ByVal columnHeaderBackground As Background, _
ByVal As Background, _
ByVal As Background, _
ByVal As Color _
)
'Usage
Dim name As String
Dim backColor As Color
Dim cellBackColor As Color
Dim cellForeColor As Color
Dim cellSpacing As Integer
Dim gridLineColor As Color
Dim gridLines As GridLines
Dim headerBackColor As Color
Dim headerForeColor As Color
Dim selectionBackColor As Color
Dim selectionForeColor As Color
Dim evenRowBackColor As Color
Dim oddRowBackColor As Color
Dim flatColumnHeader As Boolean
Dim flatRowHeader As Boolean
Dim headerFontBold As Boolean
Dim showColumnHeader As Boolean
Dim showRowHeader As Boolean
Dim columnHeaderBackground As Background
Dim rowHeaderBackground As Background
Dim sheetCornerBackground As Background
Dim headerGrayAreaColor As Color
Dim instance As New SheetSkin(name, backColor, cellBackColor, cellForeColor, cellSpacing, gridLineColor, gridLines, headerBackColor, headerForeColor, selectionBackColor, selectionForeColor, evenRowBackColor, oddRowBackColor, flatColumnHeader, flatRowHeader, headerFontBold, showColumnHeader, showRowHeader, columnHeaderBackground, rowHeaderBackground, sheetCornerBackground, headerGrayAreaColor)
public SheetSkin(
string ,
Color ,
Color ,
Color ,
int ,
Color ,
GridLines ,
Color ,
Color ,
Color ,
Color ,
Color ,
Color ,
bool flatColumnHeader,
bool ,
bool ,
bool showColumnHeader,
bool ,
Background columnHeaderBackground,
Background ,
Background ,
Color
)
Parameters
- name
- Name of the skin
- backColor
- Background color for the sheet
- cellBackColor
- Background color of the cells
- cellForeColor
- Text color of the cells
- cellSpacing
- Cell spacing in the table
- gridLineColor
- Grid line color
- gridLines
- Which grid lines are displayed
- headerBackColor
- Background color of the headers
- headerForeColor
- Text color of the headers
- selectionBackColor
- Background color of selected cells
- selectionForeColor
- Text color of selected cells
- evenRowBackColor
- Background color of even rows
- oddRowBackColor
- Background color of odd rows
- flatColumnHeader
- Whether flat headers are displayed (or default three-dimensional headers)
- flatRowHeader
- Whether flat headers are displayed (or default three-dimensional headers)
- headerFontBold
- Whether bold font in headers
- showColumnHeader
- Whether to display the column header
- showRowHeader
- Whether to display the row header
- columnHeaderBackground
- Column header background
- rowHeaderBackground
- Row header background
- sheetCornerBackground
- Sheet corner background
- headerGrayAreaColor
- Color of the header gray area
Example
This example creates and applies a sheet skin.
See Also