Spread Windows Forms 12.0 Product Documentation
SheetSkin Constructor(String,Color,Color,Color,Color,GridLines,Color,Color,Color,Color,Color,Color,Color,Color,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetSkin Class > SheetSkin Constructor : SheetSkin Constructor(String,Color,Color,Color,Color,GridLines,Color,Color,Color,Color,Color,Color,Color,Color,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean)
Name of the skin
Background color for the sheet
Background color of the cells
Text color of the cells
Grid line color
Which grid lines are displayed
Background color of the headers
Background color of the footers
Text color of the headers
Text color of the footers
Background color of selected cells
Text color of selected cells
Background color of even rows
Background color of odd rows
Whether flat headers are displayed (or default three-dimensional headers)
Whether flat footers are displayed (or default three-dimensional footers)
Whether flat headers are displayed (or default three-dimensional headers)
Whether to show bold font in headers
Whether to show bold font in footers
Whether to display the column header
Whether to display the column footer
Whether to display the row header
Creates a new skin with the specified settings.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal backColor As Color, _
   ByVal cellBackColor As Color, _
   ByVal cellForeColor As Color, _
   ByVal gridLineColor As Color, _
   ByVal gridLines As GridLines, _
   ByVal headerBackColor As Color, _
   ByVal footerBackColor As Color, _
   ByVal headerForeColor As Color, _
   ByVal footerForeColor As Color, _
   ByVal selectionBackColor As Color, _
   ByVal selectionForeColor As Color, _
   ByVal evenRowBackColor As Color, _
   ByVal oddRowBackColor As Color, _
   ByVal flatColumnHeader As Boolean, _
   ByVal flatColumnFooter As Boolean, _
   ByVal flatRowHeader As Boolean, _
   ByVal headerFontBold As Boolean, _
   ByVal footerFontBold As Boolean, _
   ByVal showColumnHeader As Boolean, _
   ByVal showColumnFooter As Boolean, _
   ByVal showRowHeader As Boolean _
)
'Usage
 
Dim name As String
Dim backColor As Color
Dim cellBackColor As Color
Dim cellForeColor As Color
Dim gridLineColor As Color
Dim gridLines As GridLines
Dim headerBackColor As Color
Dim footerBackColor As Color
Dim headerForeColor As Color
Dim footerForeColor As Color
Dim selectionBackColor As Color
Dim selectionForeColor As Color
Dim evenRowBackColor As Color
Dim oddRowBackColor As Color
Dim flatColumnHeader As Boolean
Dim flatColumnFooter As Boolean
Dim flatRowHeader As Boolean
Dim headerFontBold As Boolean
Dim footerFontBold As Boolean
Dim showColumnHeader As Boolean
Dim showColumnFooter As Boolean
Dim showRowHeader As Boolean
 
Dim instance As New SheetSkin(name, backColor, cellBackColor, cellForeColor, gridLineColor, gridLines, headerBackColor, footerBackColor, headerForeColor, footerForeColor, selectionBackColor, selectionForeColor, evenRowBackColor, oddRowBackColor, flatColumnHeader, flatColumnFooter, flatRowHeader, headerFontBold, footerFontBold, showColumnHeader, showColumnFooter, showRowHeader)

Parameters

name
Name of the skin
backColor
Background color for the sheet
cellBackColor
Background color of the cells
cellForeColor
Text color of the cells
gridLineColor
Grid line color
gridLines
Which grid lines are displayed
headerBackColor
Background color of the headers
footerBackColor
Background color of the footers
headerForeColor
Text color of the headers
footerForeColor
Text color of the footers
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)
flatColumnFooter
Whether flat footers are displayed (or default three-dimensional footers)
flatRowHeader
Whether flat headers are displayed (or default three-dimensional headers)
headerFontBold
Whether to show bold font in headers
footerFontBold
Whether to show bold font in footers
showColumnHeader
Whether to display the column header
showColumnFooter
Whether to display the column footer
showRowHeader
Whether to display the row header
Example
This example queries if one sheet skin is equal to another.
FarPoint.Win.Spread.SheetSkin sk = new FarPoint.Win.Spread.SheetSkin("TestSkin", Color.BlanchedAlmond, Color.Blue, Color.Wheat,
Color.Gray, FarPoint.Win.Spread.GridLines.Both, Color.DarkBlue, Color.LightBlue, Color.AliceBlue, Color.Yellow, Color.White,
Color.Blue, false, false, true, true, true);

FarPoint.Win.Spread.SheetSkin testskin = new FarPoint.Win.Spread.SheetSkin(sk);
bool b;
testskin.Apply(fpSpread1); 
b = sk.Equals(testskin);
listBox1.Items.Add(b.ToString());
Dim sk As New FarPoint.Win.Spread.SheetSkin("TestSkin", Color.BlanchedAlmond, Color.Blue, Color.Wheat, Color.Gray, FarPoint.Win.Spread.GridLines.Both,
Color.DarkBlue, Color.LightBlue, Color.AliceBlue, Color.Yellow, Color.White, Color.Blue, False, False, True, True, True)

Dim testskin As New FarPoint.Win.Spread.SheetSkin(sk)
Dim b As Boolean
testskin.Apply(FpSpread1)
b = sk.Equals(testskin)
ListBox1.Items.Add(b.ToString())
See Also

Reference

SheetSkin Class
SheetSkin Members
Overload List