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


row
Row index
column
Row header column index
value
Text for the label

Glossary Item Box

Sets the value for a specified cell in the row header on this sheet.

Syntax

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

Parameters

row
Row index
column
Row header column index
value
Text for the label

Example

This example illustrates the use of this member by returning the label for the specified row header.
C#Copy Code
fpSpread1.ActiveSheet.RowHeaderColumnCount = 3;
fpSpread1.ActiveSheet.SetRowLabel(1, 1, "Income");
label1.Text = "The row label is - " + fpSpread1.ActiveSheet.GetRowLabel(1, 1).ToString();
Visual BasicCopy Code
FpSpread1.ActiveSheet.RowHeaderColumnCount = 3
FpSpread1.ActiveSheet.SetRowLabel(1, 1, "Income")
Label1.Text = "The row label is - " & FpSpread1.ActiveSheet.GetRowLabel(1, 1).ToString()

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.