| Visual Basic (Declaration) | |
|---|---|
Public Event ButtonClicked() As EditorNotifyEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public event EditorNotifyEventHandler ButtonClicked() | |
The event handler receives an argument of type EditorNotifyEventArgs containing data related to this event. The following EditorNotifyEventArgs 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. |
| 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. |
This example raises the ButtonClicked event when the user presses a button cell.
| C# | Copy Code |
|---|---|
fpSpread1.ActiveSheet.Cells[0, 0].CellType = new FarPoint.Win.Spread.CellType.ButtonCellType(); | |
| Visual Basic | Copy Code |
|---|---|
FpSpread1.ActiveSheet.Cells(0, 0).CellType = New FarPoint.Win.Spread.CellType.ButtonCellType() | |
This event is raised by the OnButtonClicked method when the user clicks a button, check box, or hyperlink in a cell. This includes the following cell types:
This event occurs when primary buttons not secondary buttons (like spin buttons) are pressed.
For more details on the individual event arguments, refer to EditorNotifyEventArgs members.
Reference
FpSpread ClassFpSpread Members
EditorNotifyEventArgs Class
User-Task Documentation
Working with Graphical Cell TypesAllowing the Display of Buttons in a Cell