Spread Windows Forms 11.0 Product Documentation
Links Property (HyperLinkCellType)
Example 


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

Property Value

String array containing the strings containing the destination links
Remarks

Refer to the Link example to understand how to specify an individual hyperlink.

For multiple hyperlinks in one text string, use the LinkAreas property along with this one. This property allows multiple destination URLs, one for each hyperlink.

The destination may be a Web site URL, as in http://sphelp.grapecity.com/, or it may be an email link, as in mailto:spread.support@grapecity.com. Any valid URL should work.

Example
This example creates a hyperlink cell with multiple hyperlinks.
FarPoint.Win.Spread.CellType.HyperLinkCellType mhp = new FarPoint.Win.Spread.CellType.HyperLinkCellType(); 
mhp.Text = "Visit our main site or our tech support site."; 
string[] s = new string[]{"www.fpoint.com", "www.clubfarpoint.com"};  
mhp.Links = s; 
LinkArea[] la = new LinkArea[]{new LinkArea(10, 9), new LinkArea(27, 17)}; 
mhp.LinkAreas = la; 
fpSpread1.ActiveSheet.Columns[1].Width = 220;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = mhp;
Dim mhp As New FarPoint.Win.Spread.CellType.HyperLinkCellType
mhp.Text = "Visit our main site or our tech support site."
Dim s() As String = New String() {"www.fpoint.com", "www.clubfarpoint.com"} 
mhp.Links = s 
Dim la() As LinkArea = New LinkArea() {New LinkArea(10, 9), New LinkArea(27, 17)} 
mhp.LinkAreas = la 
FpSpread1.ActiveSheet.Columns(1).Width = 220
FpSpread1.ActiveSheet.Cells(0, 0).CellType = mhp
See Also

Reference

HyperLinkCellType Class
HyperLinkCellType Members