SpreadsheetNameBoxControl.ItemDisplayMode Property
In This Article
Gets or sets a value indicating what items should appear in the Name Box list.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.XtraSpreadsheet.v24.2.dll
NuGet Package: DevExpress.Win.Spreadsheet
#Declaration
[DefaultValue(NameBoxItemDisplayMode.Default)]
[DXCategory("Behavior")]
public NameBoxItemDisplayMode ItemDisplayMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Name |
Default | A Name |
Available values:
Name | Description |
---|---|
Default | Specifies that all items should be displayed in the Name Box. |
Exclude |
Specifies that table names should not be displayed in the Name Box. |
Exclude |
Specifies that defined names should not be displayed in the Name Box. |
#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