Spread Windows Forms 11.0 Product Documentation
ColumnHeaderStyle Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView.DocumentModels Class : ColumnHeaderStyle Property
Gets or sets the column header style model.
Syntax
'Declaration
 
Public Property ColumnHeaderStyle As ISheetStyleModel
'Usage
 
Dim instance As SheetView.DocumentModels
Dim value As ISheetStyleModel
 
instance.ColumnHeaderStyle = value
 
value = instance.ColumnHeaderStyle
public ISheetStyleModel ColumnHeaderStyle {get; set;}

Property Value

ISheetStyleModel object containing the style model
Exceptions
ExceptionDescription
Model is not specified (or specified value is null)
Example
This example specifies the background color for the first column header.
FarPoint.Win.Spread.SheetView.DocumentModels dm = new FarPoint.Win.Spread.SheetView.DocumentModels();
dm = fpSpread1.ActiveSheet.Models;
FarPoint.Win.Spread.StyleInfo info = new FarPoint.Win.Spread.StyleInfo();
info.BackColor = Color.Red;
dm.ColumnHeaderStyle.SetDirectInfo(0, 0, info);
Dim dm As New FarPoint.Win.Spread.SheetView.DocumentModels()
dm = FpSpread1.ActiveSheet.Models
Dim info As New FarPoint.Win.Spread.StyleInfo()
info.BackColor = Color.Red
dm.ColumnHeaderStyle.SetDirectInfo(0, 0, info)
See Also

Reference

SheetView.DocumentModels Class
SheetView.DocumentModels Members