Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / GetColumnLabel Method
Example


In This Topic
    GetColumnLabel Method
    In This Topic
    Gets the text in the specified column header cell on this sheet.
    Overload List
    OverloadDescription
    Gets the text in the specified column header cell on this sheet.  
    Example
    This example illustrates the use of this member by returning the text displayed in the specified row of the column headers.
    FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView();
    sv.ColumnHeaderRowCount = 3;
    sv.SetColumnLabel(1, 2, "Two");
    fpSpread1.Sheets.Add(sv);
    fpSpread1.ActiveSheet = sv;
    label1.Text = sv.GetColumnLabel(1, 2);
    Dim sv As New FarPoint.Win.Spread.SheetView()
    sv.ColumnHeaderRowCount = 3
    sv.SetColumnLabel(1, 2, "Two")
    FpSpread1.Sheets.Add(sv)
    FpSpread1.ActiveSheet = sv
    Label1.Text = sv.GetColumnLabel(1, 2)
    See Also