Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / GetColumnAutoText Method
Column index
Example


In This Topic
    GetColumnAutoText Method
    In This Topic
    Gets the automatic text displayed in the specified column header.
    Syntax
    'Declaration
     
    Public Function GetColumnAutoText( _
       ByVal column As Integer _
    ) As String
    'Usage
     
    Dim instance As SheetView
    Dim column As Integer
    Dim value As String
     
    value = instance.GetColumnAutoText(column)
    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.
    FarPoint.Web.Spread.ColumnHeader colhdr;
    FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView;
    colhdr=sv.ColumnHeader;
    colhdr.RowCount=3;
    colhdr.AutoText=FarPoint.Web.Spread.HeaderAutoText.Letters;
    ListBox1.Items.Add(Convert.ToString(sv.GetColumnAutoText(3)));
    Dim colhdr As FarPoint.Web.Spread.ColumnHeader
    Dim sv As FarPoint.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))
    See Also