Back to Devexpress

SpreadsheetCellCancelEventArgs Class

officefileapi-devexpress-dot-xtraspreadsheet-5ef63929.md

latest3.1 KB
Original Source

SpreadsheetCellCancelEventArgs Class

Provides data for the SpreadsheetControl.CellBeginEdit event and serves as the base class for SpreadsheetCellValidatingEventArgs.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
[ComVisible(true)]
public class SpreadsheetCellCancelEventArgs :
    SpreadsheetCellEventArgsBase
vb
<ComVisible(True)>
Public Class SpreadsheetCellCancelEventArgs
    Inherits SpreadsheetCellEventArgsBase

SpreadsheetCellCancelEventArgs is the data class for the following events:

LibraryRelated API Members
WinForms ControlsSpreadsheetControl.CellBeginEdit
WPF ControlsSpreadsheetControl.CellBeginEdit

Remarks

The SpreadsheetCellCancelEventArgs class introduces the SpreadsheetCellCancelEventArgs.Cancel property which specifies whether the operation performed on the processed event should be canceled. Set this property to true to cancel activation of the cell editor when handling the SpreadsheetControl.CellBeginEdit event, or to cancel closing the cell editor when handling the SpreadsheetControl.CellEndEdit event.

An instance of the SpreadsheetCellCancelEventArgs class with appropriate settings is automatically created and passed to the corresponding event’s handler.

Inheritance

Object EventArgs SpreadsheetCellEventArgsBase SpreadsheetCellCancelEventArgs SpreadsheetCellValidatingEventArgs

See Also

SpreadsheetCellCancelEventArgs Members

CellBeginEdit

CellEndEdit

CellCancelEdit

DevExpress.XtraSpreadsheet Namespace