Gets or sets the formatted text in a cell.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Text As String |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Cell
Dim value As String
instance.Text = value
value = instance.Text |
C# | |
---|
public string Text {get; set;} |
Property Value
String containing the formatted contents of this cell
Remarks
Example
This example creates a Cell object and supplies a note for the cell. When the user passes the mouse over the cell, a note appears at the mouse pointer.
C# | Copy Code |
---|
FarPoint.Web.Spread.Cell mycell;
FarPoint.Web.Spread.Inset margin = new FarPoint.Web.Spread.Inset(20,40,50,20);
mycell = FpSpread1.Cells[0,0];
mycell.Text="Note Test";
mycell.Locked=true;
mycell.Margin=margin;
mycell.Note="This is the Note";
FpSpread1.ActiveSheetView.Rows[0].Height=80; |
Visual Basic | Copy Code |
---|
Dim mycell As FarPoint.Web.Spread.Cell
Dim margin As New FarPoint.Web.Spread.Inset(20,40,50,20)
mycell=FpSpread1.Cells(0,0)
mycell.Text="Note Test"
mycell.Locked=True
mycell.Margin=margin
mycell.Note="This is the Note"
FpSpread1.ActiveSheetView.Rows(0).Height=80 |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also