FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : HyperLinkClicked Event |
'Declaration Public Event HyperLinkClicked As HyperLinkClickedEventHandler
'Usage Dim instance As FpSpread Dim handler As HyperLinkClickedEventHandler AddHandler instance.HyperLinkClicked, handler
public event HyperLinkClickedEventHandler HyperLinkClicked
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.
Property | Description |
---|---|
Column | Gets the column index of the cell with the editor that raised the event. |
EditingControl | Gets the Control object that raises the event. |
Link | Gets or sets the link. |
LinkIndex | Gets or sets the index of the clicked link. |
Row | Gets the row index of the cell with the editor that raised the event. |
View | Gets the view that contains the cell with the editor that raised the 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) { listBox1.Items.Add(e.Column); }
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 ListBox1.Items.Add(e.Column) End Sub
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