次のサンプルコードは、列ヘッダが3行から成るように設定し、2番目の行の文字を列ヘッダに表示します。
FarPoint.Web.Spread.ColumnHeader colhdr;
colhdr = FpSpread1.ActiveSheetView.ColumnHeader;
// column header has three rows
colhdr.RowCount = 3;
// column header displays letters
colhdr.AutoText = FarPoint.Web.Spread.HeaderAutoText.Letters;
// automatic text in second zero-index row
colhdr.AutoTextIndex = 1;
Dim colhdr As FarPoint.Web.Spread.ColumnHeader
colhdr = FpSpread1.ActiveSheetView.ColumnHeader
' column header has three rows
colhdr.RowCount = 3
' column header displays letters
colhdr.AutoText = FarPoint.Web.Spread.HeaderAutoText.Letters
' automatic text in second zero-index row
colhdr.AutoTextIndex = 1