Spread Windows Forms 10.0 Product Documentation
LinkColor Property (HyperLinkCellType)
Example 


Gets or sets the color of links.
Syntax
'Declaration
 
Public Property LinkColor As Color
'Usage
 
Dim instance As HyperLinkCellType
Dim value As Color
 
instance.LinkColor = value
 
value = instance.LinkColor
public Color LinkColor {get; set;}

Property Value

Color object containing the color of the link
Remarks
For the color of the link once it has been visited (clicked on), refer to VisitedLinkColor property.
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

HyperLinkCellType Class
HyperLinkCellType Members
VisitedLinkColor Property

 

 


Copyright © GrapeCity, inc. All rights reserved.