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


row
Column header row index
column
Column index

Glossary Item Box

Gets the text in the specified column header cell on this sheet.

Syntax

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

Parameters

row
Column header row index
column
Column index

Return Value

String containing the text in the specified column header cell

Example

This example illustrates the use of this member by returning the text displayed in the specified row of the column headers.
C#Copy Code
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);
Visual BasicCopy Code
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)

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.