Spread Windows Forms 11.0 Product Documentation
RowHeaderAutoTextIndex Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : RowHeaderAutoTextIndex Property
Gets or sets which row header column on this sheet displays the automatic text when there are multiple row header columns.
Syntax
'Declaration
 
Public Property RowHeaderAutoTextIndex As Integer
'Usage
 
Dim instance As SheetView
Dim value As Integer
 
instance.RowHeaderAutoTextIndex = value
 
value = instance.RowHeaderAutoTextIndex
public int RowHeaderAutoTextIndex {get; set;}

Property Value

Integer index of the column in the row header
Remarks

If your header has multiple header columns, you can specify which header column displays the automatic text by setting this property.

This property is equivalent to the RowHeader.AutoTextIndex property.

The automatic text is the text automatically assigned to header cells by the component. By default, for rows the automatic text is numbers. Use the RowHeaderAutoText property (or RowHeader.AutoText property) to change the automatic text to blank or to letters.

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
See Also

Reference

SheetView Class
SheetView Members
RowHeaderAutoText Property

User-Task Documentation

Customizing the Default Header Labels