Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / GetColumnLabel Method
Header row index
Header column index
Example


In This Topic
    GetColumnLabel Method
    In This Topic
    Gets the text in the column header cell at the specified row and column.
    Syntax
    'Declaration
     
    Public Function GetColumnLabel( _
       ByVal row As Integer, _
       ByVal column As Integer _
    ) As String
    'Usage
     
    Dim instance As SheetView
    Dim row As Integer
    Dim column As Integer
    Dim value As String
     
    value = instance.GetColumnLabel(row, column)
    public string GetColumnLabel( 
       int row,
       int column
    )

    Parameters

    row
    Header row index
    column
    Header column index

    Return Value

    String containing the text for the specified header cell
    Example
    This example creates a SheetView object and places custom text in the second column header. It returns the text from that header to a list box using the Sheetview object.
    FarPoint.Web.Spread.Columnmycol;
    FarPoint.Web.Spread.SheetViewsv;
    sv=FpSpread1.ActiveSheetView;
    mycol=sv.Columns[1];
    mycol.Label="FarPoint";
    ListBox1.Items.Add(sv.GetColumnLabel(0,1));
    DimmycolAsFarPoint.Web.Spread.Column
    DimsvAsFarPoint.Web.Spread.SheetView
    sv=FpSpread1.ActiveSheetView
    mycol=sv.Columns(1)
    mycol.Label="FarPoint"
    ListBox1.Items.Add(sv.GetColumnLabel(0,1))
    See Also