Spread ASP.NET 6.0 Product Documentation
ColumnCount Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > RowHeader Class : ColumnCount Property


Glossary Item Box

Gets or sets the number of columns in the row header.

Syntax

Visual Basic (Declaration) 
Public Property ColumnCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As RowHeader
Dim value As Integer
 
instance.ColumnCount = value
 
value = instance.ColumnCount
C# 
public int ColumnCount {get; set;}

Property Value

Integer number of columns in this row header

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException Specified column count is less than 0 or greater than 256.

Remarks

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.

Example

This example sets the row header to have three columns and to display the letters in the second of the three columns in the row header.
C#Copy Code
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
Visual BasicCopy Code
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

Requirements

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

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.