Spread Windows Forms 12.0 Product Documentation
Text Property (HyperLinkCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > HyperLinkCellType Class : Text Property
Gets or sets the text string.
Syntax
'Declaration
 
Public Property Text As String
'Usage
 
Dim instance As HyperLinkCellType
Dim value As String
 
instance.Text = value
 
value = instance.Text
public string Text {get; set;}

Property Value

String containing the text of the link
Remarks

This is the text that appears in the cell and may have part of the length of this text underlined and highlighted as the link. Refer to the LinkArea property to specify how much of this text appears underlined and highlighted as the link.

Example
This example shows the use of the hyperlink cell properties.
FarPoint.Win.Spread.CellType.HyperLinkCellType hlnkcell = new FarPoint.Win.Spread.CellType.HyperLinkCellType();
hlnkcell.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("..\\images\\mail16a.ico"));
hlnkcell.Link = "http://www.fpoint.com"; 
hlnkcell.LinkArea = new LinkArea(9,16);
hlnkcell.LinkColor = Color.DarkRed;
hlnkcell.Text = "Click to See Our Web Site.";
hlnkcell.VisitedLinkColor = Color.Gray;
fpSpread1.Sheets[0].Cells[7,2].CellType = hlnkcell;
Dim hlnkcell As New FarPoint.Win.Spread.CellType.HyperLinkCellType()
hlnkcell.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("..\images\mail16a.ico"))
hlnkcell.Link = "http://www.fpoint.com"
hlnkcell.LinkArea = new LinkArea(9,16)
hlnkcell.LinkColor = Color.DarkRed
hlnkcell.Text = "Click to See Our Web Site."
hlnkcell.VisitedLinkColor = Color.Gray
fpSpread1.Sheets(0).Cells(7,2).CellType = hlnkcell
See Also

Reference

HyperLinkCellType Class
HyperLinkCellType Members
LinkArea Property