Spread Windows Forms 6.0 Product Documentation
GetColumnAutoText Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetColumnAutoText Method


column
Column index of column header

Glossary Item Box

Gets the automatic text displayed in the column header for the specified column on this sheet.

Syntax

Visual Basic (Declaration) 
Public Function GetColumnAutoText( _
   ByVal column As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim value As String
 
value = instance.GetColumnAutoText(column)
C# 
public string GetColumnAutoText( 
   int column
)

Parameters

column
Column index of column header

Return Value

String containing the automatic text in the specified column header

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException Specified column index is out of range; must be at least zero

Remarks

If the column header displays custom text, this method returns a null value.

Example

This example illustrates the use of this member by returning the text displayed in the specified column header.
C#Copy Code
string s;
s = fpSpread1.ActiveSheet.GetColumnAutoText(1);
listBox1.Items.Add(s);
Visual BasicCopy Code
Dim s As String
s = FpSpread1.ActiveSheet.GetColumnAutoText(1)
ListBox1.Items.Add(s)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.