Spread Windows Forms 10.0 Product Documentation
ColumnHeaderAutoTextIndex Property
Example 


Gets or sets which column header row for the sheet displays the automatic text when there are multiple column header rows.
Syntax
'Declaration
 
Public Property ColumnHeaderAutoTextIndex As Integer
'Usage
 
Dim instance As SheetView
Dim value As Integer
 
instance.ColumnHeaderAutoTextIndex = value
 
value = instance.ColumnHeaderAutoTextIndex
public int ColumnHeaderAutoTextIndex {get; set;}

Property Value

Integer index of the row in the column header
Remarks

The automatic text is the text automatically assigned to header cells by the Spread component. By default, for columns the automatic text is letters. 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 this property.

This property is equivalent to the ColumnHeader.AutoTextIndex 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.

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;
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
ColumnHeaderAutoText Property

User-Task Documentation

Customizing the Default Header Labels

 

 


Copyright © GrapeCity, inc. All rights reserved.