Spread Windows Forms 11.0 Product Documentation
CellDoubleClick Event
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : CellDoubleClick Event
Occurs when the user presses the left mouse button down twice (double-clicks) in a cell.
Syntax
'Declaration
 
Public Event CellDoubleClick As CellClickEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As CellClickEventHandler
 
AddHandler instance.CellDoubleClick, handler
public event CellClickEventHandler CellDoubleClick
Event Data

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.

PropertyDescription
Gets the actual column index in layout  
Gets the actual row index in layout  
Gets which mouse button has been pressed.  
Gets or sets whether to cancel default processing.  
Gets the column index of the cell that is clicked.  
Gets whether the cell that is clicked is in the column footer.  
Gets whether the cell that is clicked is in the column headers.  
Gets the row index of the cell that is clicked.  
Gets whether the cell that is clicked is in the row headers.  
Gets the view that contains the cell that is clicked.  
Gets the x-coordinate of the pointer position.  
Gets the y-coordinate of the pointer position.  
Remarks

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.

Example
This example raises the cell double click event when the user double clicks in a cell.
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!");
}
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
See Also