次のサンプルコードは、列ヘッダ内のすべての列の背景色をDefaultStyleに基づいて設定します。
FarPoint.Win.Spread.ColumnHeader ch;
FarPoint.Win.Spread.StyleInfo style = new FarPoint.Win.Spread.StyleInfo();
ch = fpSpread1.ActiveSheet.ColumnHeader;
ch.RowCount = 3;
style.BackColor = Color.Teal;
ch.DefaultStyle = style;
Dim ch As FarPoint.Win.Spread.ColumnHeader
Dim style As New FarPoint.Win.Spread.StyleInfo()
ch = FpSpread1.ActiveSheet.ColumnHeader
ch.RowCount = 3
style.BackColor = Color.Teal
ch.DefaultStyle = style