CommandBarControl.Priority 属性

定义

返回或设置命令栏控件的优先级。

public:
 property int Priority { int get(); void set(int value); };
public int Priority { get; set; }
member this.Priority : int with get, set
Public Property Priority As Integer

属性值

注解

对于固定命令栏,当一行中无法容纳其中的所有控件时,控件的优先级将决定该控件是否会从命令栏中删除。 无法容纳在一行中的控件将在命令栏上从右向左进行删减。

有效的优先级数为从 0(零)至 7 之间的数字,默认值为 3。 优先级为 1 表示不能从工具栏中删除该控件。 而优先级为其他值的控件将被忽略。

菜单项的命令栏控件不能使用 Priority 属性。

适用于