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


Glossary Item Box

Gets the column headers in the Spread component.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ColumnHeader As ColumnHeader
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As ColumnHeader
 
value = instance.ColumnHeader
C# 
public ColumnHeader ColumnHeader {get;}

Property Value

ColumnHeader object containing the column headers in the currently selected sheet

Remarks

This property is available at run time only.

Example

This example creates a spreadsheet with three column header rows, displays numbers in the first row, aligns the numbers to the right side of the header and changes its background color to red.
C#Copy Code
FpSpread1.ColumnHeader.AutoText=FarPoint.Web.Spread.HeaderAutoText.Numbers;
FpSpread1.ColumnHeader.RowCount=3;
FpSpread1.ColumnHeader.AutoTextIndex=0;
FpSpread1.ColumnHeader.AlternatingRows[0].BackColor=Color.Red;
FpSpread1.ColumnHeader.AlternatingRows[0].HorizontalAlign=HorizontalAlign.Right;
Visual BasicCopy Code
FpSpread1.ColumnHeader.AutoText=FarPoint.Web.Spread.HeaderAutoText.Numbers
FpSpread1.ColumnHeader.RowCount=3
FpSpread1.ColumnHeader.AutoTextIndex=0
FpSpread1.ColumnHeader.AlternatingRows(0).BackColor=Color.Red
FpSpread1.ColumnHeader.AlternatingRows(0).HorizontalAlign=HorizontalAlign.Right

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.