FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > RowHeader Class : ColumnCount Property |
'Declaration Public Property ColumnCount As Integer
'Usage Dim instance As RowHeader Dim value As Integer instance.ColumnCount = value value = instance.ColumnCount
public int ColumnCount {get; set;}
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | Specified column count is less than 0 or greater than 256. |
Use this property to specify the number of columns used for the row header.
The minimum value you can set is 1. The maximum value you can set is 255.
When you set this property to a value greater than 1, additional columns are added to the row header.
This property does not have an effect unless the RowHeader.Visible property is set to true.
Set the ColumnHeader object's ColumnHeader.RowCount property to specify the number of rows to display as the column header.
FarPoint.Web.Spread.RowHeader rhdr; rhdr = FpSpread1.ActiveSheetView.RowHeader; rhdr.ColumnCount = 3; // row header has three columns rhdr.AutoText = FarPoint.Web.Spread.HeaderAutoText.Letters; // row header displays letters rhdr.AutoTextIndex = 1; // automatic text in second zero-index row
Dim rhdr As FarPoint.Web.Spread.RowHeader rhdr = FpSpread1.ActiveSheetView.RowHeader rhdr.ColumnCount = 3 ' row header has three columns rhdr.AutoText = FarPoint.Web.Spread.HeaderAutoText.Letters ' row header displays letters rhdr.AutoTextIndex = 1 ' automatic text in second zero-index row
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
RowHeader Class
RowHeader Members
Visible Property
Count Property
ColumnHeader.RowCount Property