Gets or sets the header label for this column.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Label As String |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Column
Dim value As String
instance.Label = value
value = instance.Label |
C# | |
---|
public string Label {get; set;} |
Property Value
String containing the label for this column
Remarks
Example
This example creates a spreadsheet with 10 columns and 20 rows. A Column object is created and assigned to the second column of the spreadsheet. The column header is given custom text via the Label property, which is also returned to a text box.
C# | Copy Code |
---|
FpSpread1.ActiveSheetView.ColumnCount=10;
FpSpread1.ActiveSheetView.PageSize=20;
FpSpread1.ActiveSheetView.RowCount=20;
FarPoint.Web.Spread.Columnmycol;
mycol=FpSpread1.ActiveSheetView.Columns[1];
mycol.Label="FarPoint";
TextBox1.Text=mycol.Label; |
Visual Basic | Copy Code |
---|
FpSpread1.ActiveSheetView.ColumnCount=10
FpSpread1.ActiveSheetView.PageSize=20
FpSpread1.ActiveSheetView.RowCount=20
DimmycolAsFarPoint.Web.Spread.Column
mycol=FpSpread1.ActiveSheetView.Columns(1)
mycol.Label="FarPoint"
TextBox1.Text=mycol.Label |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also