Back to Devexpress

CustomCellInplaceEditorType Enum

officefileapi-devexpress-dot-spreadsheet-c11cceab.md

latest3.5 KB
Original Source

CustomCellInplaceEditorType Enum

Lists types of the custom in-place editors that can be assigned to cells in a worksheet.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public enum CustomCellInplaceEditorType
vb
Public Enum CustomCellInplaceEditorType

Members

NameDescription
CheckBox

Specifies that a WinForms CheckEdit (or WPF CheckEdit) editor is used to edit cell content.

| | ComboBox |

Specifies that a WinForms ComboBoxEdit (or WPF ComboBoxEdit) editor is used to edit cell content.

| | DateEdit |

Specifies that a WinForms DateEdit (or WPF DateEdit) editor is used to edit cell content.

| | Custom |

Specifies that a custom editor is used to edit cell content.

Handle the WinForms Spreadsheet control’s CustomCellEdit (or WPF Spreadsheet control’s CustomCellEdit) event to assign a custom editor to a cell.

|

The following properties accept/return CustomCellInplaceEditorType values:

LibraryRelated API Members
WinForms ControlsCellEditorOpenedEventArgs.CustomEditorType
WPF ControlsCellEditorOpenedEventArgs.CustomEditorType
Office File APICustomCellInplaceEditor.EditorType

Remarks

To assign a custom in-place editor of a particular type to a cell or cell range in a worksheet, use the CustomCellInplaceEditorCollection.Add method and pass the appropriate CustomCellInplaceEditorType enumeration value as a parameter. Information about cell in-place editors of the listed types is saved to a file in XLS, XLSX, XLSB, XLT, or XLTX format, so the corresponding editors can be successfully restored when you load a document into the Spreadsheet control again. If you use an in-place editor of the CustomCellInplaceEditorType.Custom type, you must handle the SpreadsheetControl.CustomCellEdit event to define a specific editor to be assigned to the required cells.

For an example on how to use custom editors for in-place editing of cell content, refer to the How to: Assign Custom In-place Editors to Worksheet Cells article.

See Also

DevExpress.Spreadsheet Namespace