FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetColumnWidth Method |
To specify the width for a column, use the SetColumnWidth method.
Note: The value returned by the this method does not include the width of the adjacent grid line.
The default width for columns in the sheet is determined by the DefaultColumnWidth property.
If you prefer, you can allow users to resize columns by using the SetColumnSizeable method.
To see the height for a row, use the GetRowHeight method.
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))
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional
SheetView Class
SheetView Members
SetColumnWidth Method
GetRowHeight Method
DefaultColumnWidth Property
Width Property