Skip to main content
All docs
V19.1
.NET Framework 4.5.2+
Row

CustomCellInplaceEditorCollection.Add(Range, CustomCellInplaceEditorType, ValueObject, Boolean) Method

Creates a cell in-place editor of the CustomCellInplaceEditorType.ComboBox type and assigns it to the specified cell range.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

CustomCellInplaceEditor Add(
    Range range,
    CustomCellInplaceEditorType editorType,
    ValueObject value,
    bool useOnlyVisibleDataRange
)

Parameters

Name Type Description
range Range

A Range object that specifies a cell or cell range to which the custom in-place editor should be assigned.

editorType CustomCellInplaceEditorType

A CustomCellInplaceEditorType.ComboBox enumeration member indicating that a combo box editor is used for cell editing.

value ValueObject

A ValueObject object that specifies a list of items obtained from a worksheet range to be displayed in the combo box editor’s drop-down list.

useOnlyVisibleDataRange Boolean

A Boolean value that specifies whether the hidden values in the cell range from which combo box items are obtained should be included into the editor’s item list.

Returns

Type Description
CustomCellInplaceEditor

A CustomCellInplaceEditor object that specifies the created cell in-place editor.

Remarks

This method overload is used only for the in-place editor of the CustomCellInplaceEditorType.ComboBox type whose items originate from a cell range (using the ValueObject.FromRange property) and allows you to specify whether values of hidden cells should be included into the editor’s item list. Using this method overload in other cases will trigger a System.ArgumentException.

See Also