Spread ASP.NET 6.0 Product Documentation
GetColumnAutoText Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetColumnAutoText Method


column
Column index

Glossary Item Box

Gets the automatic text displayed in the specified column header.

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

Return Value

String containing the text for the column header cell specified by AutoTextIndex

Remarks

This method gets the automatic text for the column, even if the automatic text is not displayed.

Example

This example creates a ColumnHeader object and a SheetView object and returns the header text from the forth header to a list box using the SheetView object.
C#Copy Code
FarPoint.Web.Spread.ColumnHeadercolhdr;
FarPoint.Web.Spread.SheetViewsv=FpSpread1.ActiveSheetView;
colhdr=sv.ColumnHeader;
colhdr.RowCount=3;
colhdr.AutoText=FarPoint.Web.Spread.HeaderAutoText.Letters;
ListBox1.Items.Add(Convert.ToString(sv.GetColumnAutoText(3)));
Visual BasicCopy Code
DimcolhdrAsFarPoint.Web.Spread.ColumnHeader
DimsvAsFarPoint.Web.Spread.SheetView
sv=FpSpread1.ActiveSheetView
colhdr=sv.ColumnHeader
colhdr.RowCount=3
colhdr.AutoText=FarPoint.Web.Spread.HeaderAutoText.Letters
ListBox1.Items.Add(sv.GetColumnAutoText(3))

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.