Spread WPF Documentation
GetColumnAutoText Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : GetColumnAutoText Method
The column index.
Gets the automatic text displayed in the column header for the specified column.
Syntax
'Declaration
 
Public Function GetColumnAutoText( _
   ByVal column As System.Integer _
) As System.String
'Usage
 
Dim instance As Worksheet
Dim column As System.Integer
Dim value As System.String
 
value = instance.GetColumnAutoText(column)
public System.string GetColumnAutoText( 
   System.int column
)

Parameters

column
The column index.

Return Value

Returns the automatically generated column text.
Exceptions
ExceptionDescription
Specified column index is out of range; must be at least zero.
Example
This example uses the GetColumnAutoText method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualStyleInfo(0, 0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualStyleInfo(0,1,GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells,false).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnAutoText(1).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualStyleInfo(0, 0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualStyleInfo(0,1,GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, False).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnAutoText(1).ToString())
See Also

Reference

Worksheet Class
Worksheet Members