この例では、10列20行から成るスプレッドシートを作成します。Columnオブジェクトを作成し、スプレッドシートの2番目の列に割り当てます。列ヘッダにLabelプロパティからカスタムテキストを設定し、このカスタムテキストをテキストボックスに返します。
FpSpread1.ActiveSheetView.ColumnCount = 10;
FpSpread1.ActiveSheetView.PageSize = 20;
FpSpread1.ActiveSheetView.RowCount = 20;
FarPoint.Web.Spread.Column mycol;
mycol = FpSpread1.ActiveSheetView.Columns[1];
mycol.Label = "GrapeCity";
TextBox1.Text = mycol.Label;
FpSpread1.ActiveSheetView.ColumnCount = 10
FpSpread1.ActiveSheetView.PageSize = 20
FpSpread1.ActiveSheetView.RowCount = 20
Dim mycol As FarPoint.Web.Spread.Column
mycol = FpSpread1.ActiveSheetView.Columns(1)
mycol.Label = "GrapeCity"
TextBox1.Text = mycol.Label