FarPoint.Web.Spread 名前空間 > SheetSkin クラス > SheetSkin コンストラクタ : SheetSkin コンストラクタ(String,Color,Color,Color,Int32,Color,GridLines,Color,Color,Color,Color,Color,Color,Boolean,Boolean,Boolean,Boolean,Boolean,String,String,Color,Color,Color,Color,Boolean) |
true
に設定した場合、フィルタバーが表示されます。
'Declaration
Public Function New( _ ByVal name As String, _ ByVal backColor As Color, _ ByVal cellBackColor As Color, _ ByVal cellForeColor As Color, _ ByVal cellSpacing As Integer, _ ByVal gridLineColor As Color, _ ByVal gridLines As GridLines, _ ByVal headerBackColor As Color, _ ByVal headerForeColor As Color, _ ByVal selectionBackColor As Color, _ ByVal selectionForeColor As Color, _ ByVal evenRowBackColor As Color, _ ByVal oddRowBackColor As Color, _ ByVal flatColumnHeader As Boolean, _ ByVal flatRowHeader As Boolean, _ ByVal headerFontBold As Boolean, _ ByVal showColumnHeader As Boolean, _ ByVal showRowHeader As Boolean, _ ByVal filterBarParent As String, _ ByVal filterBarHeaderParent As String, _ ByVal filterBarBackColor As Color, _ ByVal filterBarForeColor As Color, _ ByVal filterBarHeaderBackColor As Color, _ ByVal filterBarHeaderForeColor As Color, _ ByVal showFilterBar As Boolean _ )
public SheetSkin( string name, Color backColor, Color cellBackColor, Color cellForeColor, int cellSpacing, Color gridLineColor, GridLines gridLines, Color headerBackColor, Color headerForeColor, Color selectionBackColor, Color selectionForeColor, Color evenRowBackColor, Color oddRowBackColor, bool flatColumnHeader, bool flatRowHeader, bool headerFontBold, bool showColumnHeader, bool showRowHeader, string filterBarParent, string filterBarHeaderParent, Color filterBarBackColor, Color filterBarForeColor, Color filterBarHeaderBackColor, Color filterBarHeaderForeColor, bool showFilterBar )
true
に設定した場合、フィルタバーが表示されます。FarPoint.Web.Spread.SheetSkin sk = new FarPoint.Web.Spread.SheetSkin("sk", System.Drawing.Color.Aqua, System.Drawing.Color.LightYellow, System.Drawing.Color.Black, 1, System.Drawing.Color.Beige, GridLines.Both, System.Drawing.Color.AliceBlue, System.Drawing.Color.DarkBlue, System.Drawing.Color.Beige, System.Drawing.Color.DarkSeaGreen, System.Drawing.Color.AntiqueWhite, System.Drawing.Color.LightSlateGray, false, false, true, true, true, "test", "test1", System.Drawing.Color.Thistle, System.Drawing.Color.Purple, System.Drawing.Color.Bisque, System.Drawing.Color.Black, true); FarPoint.Web.Spread.SheetSkin testskin = new FarPoint.Web.Spread.SheetSkin(sk); testskin.Apply(FpSpread1); ListBox1.Items.Add(sk.FilterBarHeaderBackColor.ToString()); ListBox1.Items.Add(sk.FilterBarHeaderForeColor.ToString()); ListBox1.Items.Add(sk.FilterBarBackColor.ToString()); ListBox1.Items.Add(sk.FilterBarForeColor.ToString()); ListBox1.Items.Add(sk.ShowFilterBar.ToString());
Dim sk As New FarPoint.Web.Spread.SheetSkin("sk", Drawing.Color.Aqua, Drawing.Color.LightYellow, Drawing.Color.Black, 1, Drawing.Color.Beige, GridLines.Both, Drawing.Color.AliceBlue, Drawing.Color.DarkBlue, Drawing.Color.Beige, Drawing.Color.DarkSeaGreen, Drawing.Color.AntiqueWhite, Drawing.Color.LightSlateGray, False, False, True, True, True, "test", "test1", Drawing.Color.Thistle, Drawing.Color.Purple, Drawing.Color.Bisque, Drawing.Color.Black, True) Dim testskin As New FarPoint.Web.Spread.SheetSkin(sk) testskin.Apply(FpSpread1) ListBox1.Items.Add(sk.FilterBarHeaderBackColor.ToString()) ListBox1.Items.Add(sk.FilterBarHeaderForeColor.ToString()) ListBox1.Items.Add(sk.FilterBarBackColor.ToString()) ListBox1.Items.Add(sk.FilterBarForeColor.ToString()) ListBox1.Items.Add(sk.ShowFilterBar.ToString())