この例では、SheetViewオブジェクトとColumnオブジェクトを作成します。値を2番目の列に挿入し、列幅を調整してテキストの全体を表示させます。SheetViewオブジェクトを使用し、この列幅をリストボックスに返します。
FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView;
FarPoint.Web.Spread.Column mycol;
mycol = sv.Columns[1];
mycol.Width = 160;
sv.SetValue(0, 1, "Tire/WheelAlignment");
sv.SetValue(1, 1, "FuelInjectorsCleaned");
sv.SetValue(2, 1, "BrakesAdjusted");
ListBox1.Items.Add(Convert.ToString(sv.GetColumnWidth(1)));
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
Dim mycol As FarPoint.Web.Spread.Column
mycol = sv.Columns(1)
mycol.Width = 160
sv.SetValue(0, 1, "Tire/WheelAlignment")
sv.SetValue(1, 1, "FuelInjectorsCleaned")
sv.SetValue(2, 1, "BrakesAdjusted")
ListBox1.Items.Add(sv.GetColumnWidth(1))