SpreadsheetNameBoxControl.ItemDisplayMode Property

Gets or sets a value indicating what items should appear in the Name Box list.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(NameBoxItemDisplayMode.Default)]
public NameBoxItemDisplayMode ItemDisplayMode { get; set; }
<DXCategory("Behavior")>
<DefaultValue(NameBoxItemDisplayMode.Default)>
Public Property ItemDisplayMode As NameBoxItemDisplayMode

Property Value

Type Default Description
NameBoxItemDisplayMode

Default

A NameBoxItemDisplayMode enumeration member specifying what items should be displayed in the drop-down list of the Name Box control.

Remarks

The following code snippet shows how to exclude both the defined names and table names from the Name Box:


using DevExpress.XtraSpreadsheet;
// ... 
spreadsheetNameBoxControl1.ItemDisplayMode = NameBoxItemDisplayMode.ExcludeDefinedNames | NameBoxItemDisplayMode.ExcludeTableNames;
See Also