Visual Basic (Declaration) | |
---|---|
Public Property DefaultColumnWidth As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As SheetView Dim value As Integer instance.DefaultColumnWidth = value value = instance.DefaultColumnWidth |
C# | |
---|---|
public int DefaultColumnWidth {get; set;} |
Property Value
Integer number of pixels of the default column widthSet this property to specify the width in pixels for all columns in the sheet. If you want to specify the width for a particular column in the sheet, use the SetColumnWidth method or the Width method for a Column object.
To set the height for all rows in the sheet, set the DefaultRowHeight property.
This example changes the default settings for the width of columns and height of rows of a sheet.
C# | Copy Code |
---|---|
FarPoint.Web.Spread.SheetViewsv=FpSpread1.ActiveSheetView; sv.DefaultColumnWidth=120; sv.DefaultRowHeight=30; |
Visual Basic | Copy Code |
---|---|
DimsvAsFarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView sv.DefaultColumnWidth=120 sv.DefaultRowHeight=30 |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
Reference
SheetView ClassSheetView Members
SetColumnWidth Method
DefaultRowHeight Property
GetColumnWidth Method
Width Property