Share via


_CommandBarComboBox.Priority Property

Returns or sets the priority of a command bar control.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property Priority As Integer
    Get
    Set
'Usage
Dim instance As _CommandBarComboBox
Dim value As Integer

value = instance.Priority

instance.Priority = value
int Priority { get; set; }

Property Value

Type: System.Int32

Implements

CommandBarControl.Priority

Remarks

A control's priority determines whether the control can be dropped from a docked command bar if the command bar controls can't fit in a single row. Controls that can't fit in a single row drop off command bars from right to left.

Valid priority numbers are 0 (zero) through 7 and the default value is 3. A priority of 1 means that the control cannot be dropped from a toolbar. Other priority values are ignored.

The Priority property is not used by command bar controls that are menu items.

See Also

Reference

_CommandBarComboBox Interface

_CommandBarComboBox Members

Priority Overload

Microsoft.Office.Core Namespace