Spread Windows Forms 6.0 Product Documentation
Label Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Row Class : Label Property


Glossary Item Box

Gets or sets the header text for this row.

Syntax

Visual Basic (Declaration) 
Public Property Label As String
Visual Basic (Usage)Copy Code
Dim instance As Row
Dim value As String
 
instance.Label = value
 
value = instance.Label
C# 
public string Label {get; set;}

Property Value

String with label text

Remarks

Row objects returned by Rows.Default and Row objects in the column or row headers do not have a label.

Example

This example sets the label for rows.
C#Copy Code
FarPoint.Win.Spread.Row r;
int i;
for (i = 0; i <= 3; i++)
{ 
     r = fpSpread1.ActiveSheet.Cells[i, 0].Row;
     r.Label = "Row " + (i + 1).ToString();
}
Visual BasicCopy Code
Dim r As FarPoint.Win.Spread.Row
Dim i As Integer
For i = 0 To 3
     r = FpSpread1.ActiveSheet.Cells(i, 0).Row
     r.Label = "Row" & " " & i + 1
Next i

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.