Spread Silverlight Documentation
GetColumnAutoText Method
Example 


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
System.ArgumentOutOfRangeException 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())
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Worksheet Class
Worksheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.