Spread Windows Forms 12.0 Product Documentation
HyperLinkClicked Event

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : HyperLinkClicked Event
Occurs when the user clicks on hyper link text.
Public Event HyperLinkClicked As HyperLinkClickedEventHandler
Dim instance As FpSpread
Dim handler As HyperLinkClickedEventHandler
AddHandler instance.HyperLinkClicked, handler
public event HyperLinkClickedEventHandler HyperLinkClicked
Event Data

The event handler receives an argument of type HyperLinkClickedEventArgs containing data related to this event. The following HyperLinkClickedEventArgs properties provide information specific to this event.

Gets the column index of the cell with the editor that raised the event.  
Gets the Control object that raises the event.  
Gets or sets the link.  
Gets or sets the index of the clicked link.  
Gets the row index of the cell with the editor that raised the event.  
Gets the view that contains the cell with the editor that raised the event.  
This example uses the HyperLinkClicked event.
fpSpread1.ActiveSheet.Columns[1].Width = 145;
fpSpread1.ActiveSheet.Rows[1].Height = 45;
FarPoint.Win.Spread.CellType.HyperLinkCellType hlnkcell = new FarPoint.Win.Spread.CellType.HyperLinkCellType();
hlnkcell.Text = "Click to See Our Web Site";
hlnkcell.Link = "http://www.spread.grapecity.com";
hlnkcell.LinkArea = new LinkArea(9, 16);
hlnkcell.LinkColor = Color.DarkGreen;
hlnkcell.VisitedLinkColor = Color.Chartreuse;
fpSpread1.ActiveSheet.Cells[1, 1].CellType = hlnkcell;

private void fpSpread1_HyperLinkClicked(object sender, FarPoint.Win.Spread.HyperLinkClickedEventArgs e)
fpSpread1.ActiveSheet.Columns(1).Width = 145
fpSpread1.ActiveSheet.Rows(1).Height = 45
Dim hlnkcell As New FarPoint.Win.Spread.CellType.HyperLinkCellType()
hlnkcell.Text = "Click to See Our Web Site"
hlnkcell.Link ="http://www.spread.grapecity.com"
hlnkcell.LinkArea = new LinkArea(9,16)
hlnkcell.LinkColor = Color.DarkGreen
hlnkcell.VisitedLinkColor = Color.Chartreuse
fpSpread1.ActiveSheet.Cells(1, 1).CellType = hlnkcell

Private Sub fpSpread1_HyperLinkClicked(sender As Object, e As FarPoint.Win.Spread.HyperLinkClickedEventArgs) Handles fpSpread1.HyperLinkClicked
    End Sub
See Also