Spread Windows Forms 6.0 Product Documentation
ColumnHeaderAutoText Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : ColumnHeaderAutoText Property


Glossary Item Box

Gets or sets whether column headers for the sheet display letters or numbers or are blank.

Syntax

Visual Basic (Declaration) 
Public Property ColumnHeaderAutoText As HeaderAutoText
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As HeaderAutoText
 
instance.ColumnHeaderAutoText = value
 
value = instance.ColumnHeaderAutoText
C# 
public HeaderAutoText ColumnHeaderAutoText {get; set;}

Property Value

HeaderAutoText setting that determines what to display in the column header

Exceptions

ExceptionDescription
System.ComponentModel.InvalidEnumArgumentException Specified header setting is not valid; must be one of the HeaderAutoText enumeration settings

Remarks

The automatic text is the text automatically assigned to header cells by the Spread component. Use this property to change the automatic text to blank or to numbers.

If your header has multiple column header rows, you can specify which header row displays the automatic text by setting the ColumnHeaderAutoTextIndex property.

This property is equivalent to the ColumnHeader.AutoText property.

Example

This example sets up a number of column and row headers for the spreadsheet and changes the location of the header text and its type.

C#Copy Code
fpSpread1.ActiveSheet.ColumnHeader.RowCount = 3;
fpSpread1.ActiveSheet.RowHeader.ColumnCount = 2;
fpSpread1.ActiveSheet.ColumnHeaderAutoText = FarPoint.Win.Spread.HeaderAutoText.Numbers;
fpSpread1.ActiveSheet.ColumnHeaderAutoTextIndex = 0;
fpSpread1.ActiveSheet.RowHeaderAutoText = FarPoint.Win.Spread.HeaderAutoText.Letters;
fpSpread1.ActiveSheet.RowHeaderAutoTextIndex = 0;
Visual BasicCopy Code
FpSpread1.ActiveSheet.ColumnHeader.RowCount = 3
FpSpread1.ActiveSheet.RowHeader.ColumnCount = 2
FpSpread1.ActiveSheet.ColumnHeaderAutoText = FarPoint.Win.Spread.HeaderAutoText.Numbers
FpSpread1.ActiveSheet.ColumnHeaderAutoTextIndex = 0
FpSpread1.ActiveSheet.RowHeaderAutoText = FarPoint.Win.Spread.HeaderAutoText.Letters
FpSpread1.ActiveSheet.RowHeaderAutoTextIndex = 0

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.