Back to Devexpress

SpreadsheetNameBoxControl.ItemDisplayMode Property

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetnameboxcontrol-270c1785.md

latest2.6 KB
Original Source

SpreadsheetNameBoxControl.ItemDisplayMode Property

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

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

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

Property Value

TypeDefaultDescription
NameBoxItemDisplayModeDefault

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

|

Available values:

NameDescription
Default

Specifies that all items should be displayed in the Name Box.

| | ExcludeTableNames |

Specifies that table names should not be displayed in the Name Box.

| | ExcludeDefinedNames |

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 :

csharp
using DevExpress.XtraSpreadsheet;
// ... 
spreadsheetNameBoxControl1.ItemDisplayMode = NameBoxItemDisplayMode.ExcludeDefinedNames | NameBoxItemDisplayMode.ExcludeTableNames;
vb
Imports DevExpress.XtraSpreadsheet
' ... 
spreadsheetNameBoxControl1.ItemDisplayMode = NameBoxItemDisplayMode.ExcludeDefinedNames Or NameBoxItemDisplayMode.ExcludeTableNames

See Also

SpreadsheetNameBoxControl Class

SpreadsheetNameBoxControl Members

DevExpress.XtraSpreadsheet Namespace