Visual Basic (Declaration) | |
---|---|
Public Event CellDoubleClick As CellClickEventHandler |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As FpSpread Dim handler As CellClickEventHandler AddHandler instance.CellDoubleClick, handler |
C# | |
---|---|
public event CellClickEventHandler CellDoubleClick |
The event handler receives an argument of type CellClickEventArgs containing data related to this event. The following CellClickEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Button | Gets which mouse button has been pressed. |
Cancel | Gets or sets whether to cancel default processing. |
Column | Gets the column index of the cell that is clicked. |
ColumnFooter | Gets whether the cell that is clicked is in the column footer. |
ColumnHeader | Gets whether the cell that is clicked is in the column headers. |
Row | Gets the row index of the cell that is clicked. |
RowHeader | Gets whether the cell that is clicked is in the row headers. |
View | Gets the view that contains the cell that is clicked. |
X | Gets the x-coordinate of the pointer position. |
Y | Gets the y-coordinate of the pointer position. |
This event is raised by the OnDoubleCellClick method when the user presses down the left mouse button twice (double clicks) in a cell.
For more details on the individual event arguments, refer to CellClickEventArgs members.
Note that this event is raised when the mouse button is pressed, not when it is released.
To set what this event does, refer to the OperationMode enumeration.
C# | Copy Code |
---|---|
Label1.Text = "Double click in a cell to fire the CellDoubleClick event"; private void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e) { ListBox1.Items.Add("CellDoubleClick event fired!"); } |
Visual Basic | Copy Code |
---|---|
Label1.Text = "Double click in a cell to fire the CellDoubleClick event" Private Sub FpSpread1_CellDoubleClick(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.CellClickEventArgs) Handles FpSpread1.CellDoubleClick ListBox1.Items.Add("CellDoubleClick event fired!") End Sub |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8