Spread Windows Forms 9.0 Product Documentation
SetColumnLabel Method
Example 


Column header row index
Column index
Text for the label
Sets the value for a specified cell in a column header on this sheet.
Syntax
'Declaration
 
Public Sub SetColumnLabel( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal value As String _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As String
 
instance.SetColumnLabel(row, column, value)
public void SetColumnLabel( 
   int row,
   int column,
   string value
)

Parameters

row
Column header row index
column
Column index
value
Text for the label
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)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Customizing Header Label Text

 

 


Copyright © GrapeCity, inc. All rights reserved.