SpreadsheetGear.Windows.Forms Namespace > WorkbookView Class : CellCancelEdit Event |
'Declaration
<System.ComponentModel.CategoryAttribute("Data")> <System.ComponentModel.DescriptionAttribute("Occurs when edit mode is canceled.")> Public Event CellCancelEdit As CellCancelEditEventHandler
'Usage
Dim instance As WorkbookView Dim handler As CellCancelEditEventHandler AddHandler instance.CellCancelEdit, handler
[System.ComponentModel.Category("Data")] [System.ComponentModel.Description("Occurs when edit mode is canceled.")] public event CellCancelEditEventHandler CellCancelEdit
public event CellCancelEdit: CellCancelEditEventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
[System.ComponentModel.Category("Data")] [System.ComponentModel.Description("Occurs when edit mode is canceled.")] public: __event CellCancelEditEventHandler* CellCancelEdit
[System.ComponentModel.Category("Data")] [System.ComponentModel.Description("Occurs when edit mode is canceled.")] public: event CellCancelEditEventHandler^ CellCancelEdit
The event handler receives an argument of type CellCancelEditEventArgs containing data related to this event. The following CellCancelEditEventArgs properties provide information specific to this event.
Property | Description |
---|---|
ActiveCell | Returns the active cell from the time edit mode was started. |
Cancel | Gets or sets the value which specifies whether the event should be canceled. |
Entry | Gets or sets the edit entry text. |
RangeSelection | Returns the range selection from the time edit mode was started. |
The CellCancelEdit event occurs when edit mode is being canceled, and provides the event handler with the ability to force edit mode to continue.
The CellCancelEdit event is always invoked on the thread which created the workbook view control, and a lock is always acquired on the workbook set associated with the workbook view control before CellCancelEdit is invoked.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2