Spread for ASP.NET 7.0 Product Documentation
ColumnHeaderBackground Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetSkin Class : ColumnHeaderBackground Property


Glossary Item Box

Gets the column header background.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ColumnHeaderBackground As Background
Visual Basic (Usage)Copy Code
Dim instance As SheetSkin
Dim value As Background
 
value = instance.ColumnHeaderBackground
C# 
public Background ColumnHeaderBackground {get;}

Property Value

Background object containing the column header background

Example

This example sets the background for the row header, column header, and sheet corner as part of the sheet skin.
C#Copy Code
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);
Visual BasicCopy Code
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)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.