GrapeCity.Xaml.SpreadSheet.Data
AutoText Property (RowHeader)
Example 


Gets or sets a value that indicates whether the header displays letters or numbers or is blank.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Overrides NotOverridable Property AutoText As HeaderAutoText
'Usage
 
Dim instance As RowHeader
Dim value As HeaderAutoText
 
instance.AutoText = value
 
value = instance.AutoText
[DefaultValue()]
public override HeaderAutoText AutoText {get; set;}

Property Value

A value that indicates what the header displays. The default value is Numbers.
Example
This example sets the AutoText property.
gcSpreadSheet1.Sheets[0].ColumnHeader.RowCount = 2;
gcSpreadSheet1.Sheets[0].RowHeader.ColumnCount = 2;
gcSpreadSheet1.Sheets[0].ColumnHeader.Cells(0, 2).Text = "Column";
gcSpreadSheet1.Sheets[0].RowHeader.AutoTextIndex = 1;
gcSpreadSheet1.Sheets[0].RowHeader.AutoText = GrapeCity.Xaml.SpreadSheet.Data.HeaderAutoText.Letters;
gcSpreadSheet1.Sheets[0].ColumnHeader.AutoTextIndex = 1;
gcSpreadSheet1.Sheets[0].ColumnHeader.AutoText = GrapeCity.Xaml.SpreadSheet.Data.HeaderAutoText.Numbers;
GcSpreadSheet1.Sheets(0).ColumnHeader.RowCount = 2
GcSpreadSheet1.Sheets(0).RowHeader.ColumnCount = 2
GcSpreadSheet1.Sheets(0).ColumnHeader.Cells(0, 2).Text = "Column"
GcSpreadSheet1.Sheets(0).RowHeader.AutoTextIndex = 1
GcSpreadSheet1.Sheets(0).RowHeader.AutoText = GrapeCity.Xaml.SpreadSheet.Data.HeaderAutoText.Letters
GcSpreadSheet1.Sheets(0).ColumnHeader.AutoTextIndex = 1
GcSpreadSheet1.Sheets(0).ColumnHeader.AutoText = GrapeCity.Xaml.SpreadSheet.Data.HeaderAutoText.Numbers
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

RowHeader Class
RowHeader Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options