FarPoint.Web.Spread 名前空間 > SheetSkin クラス > SheetSkin コンストラクタ : SheetSkin コンストラクタ(String,Color,Color,Color,Int32,Color,GridLines,Color,Color,Color,Color,Color,Color,Boolean,Boolean,Boolean,Boolean,Boolean,Background,Background,Background,Color) |
'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 columnHeaderBackground As Background, _ ByVal rowHeaderBackground As Background, _ ByVal sheetCornerBackground As Background, _ ByVal headerGrayAreaColor As Color _ )
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, Background columnHeaderBackground, Background rowHeaderBackground, Background sheetCornerBackground, Color headerGrayAreaColor )
FarPoint.Web.Spread.Background colbg = new FarPoint.Web.Spread.Background(); colbg.BackgroundImageUrl = "picture/Winter.jpg"; FarPoint.Web.Spread.Background rowbg = new FarPoint.Web.Spread.Background(); rowbg.BackgroundImageUrl = "picture/Image.bmp"; FarPoint.Web.Spread.Background cornerbg = new FarPoint.Web.Spread.Background(); cornerbg.BackgroundImageUrl = "picture/BackgroundImage.bmp"; FarPoint.Web.Spread.SheetSkin mySkin = new FarPoint.Web.Spread.SheetSkin("TestSkin", Color.LightGoldenrodYellow,Color.Wheat, Color.DarkGreen, 2, Color.YellowGreen, GridLines.Both,Color.Thistle, Color.BlanchedAlmond, Color.Wheat,Color.DarkBlue, Color.Empty, Color.Empty, false, false, true, true, true, colbg, rowbg, cornerbg, Color.Pink); mySkin.Apply(FpSpread1.ActiveSheetView);
Dim colbg As New FarPoint.Web.Spread.Background() colbg.BackgroundImageUrl = "picture/Winter.jpg" Dim rowbg As New FarPoint.Web.Spread.Background() rowbg.BackgroundImageUrl = "picture/Image.bmp" Dim cornerbg As New FarPoint.Web.Spread.Background() cornerbg.BackgroundImageUrl = "picture/BackgroundImage.bmp" Dim mySkin As New FarPoint.Web.Spread.SheetSkin("TestSkin", Color.LightGoldenrodYellow, Color.Wheat, Color.DarkGreen, 2, Color.YellowGreen, GridLines.Both, Color.Thistle, Color.BlanchedAlmond, Color.Wheat, Color.DarkBlue, Color.Empty, Color.Empty, False, False, True, True, True, colbg, rowbg, cornerbg, Color.Pink) mySkin.Apply(FpSpread1.ActiveSheetView)