CommandBar.Protection CommandBar.Protection CommandBar.Protection Property


Returns or sets the way a command bar is protected from user customization.

 property Microsoft::Office::Core::MsoBarProtection Protection { Microsoft::Office::Core::MsoBarProtection get(); void set(Microsoft::Office::Core::MsoBarProtection value); };
public Microsoft.Office.Core.MsoBarProtection Protection { get; set; }
Public Property Protection As MsoBarProtection

Property Value


Some of the content in this topic may not be applicable to some languages.

Using the constant msoBarNoCustomize prevents users from accessing the Add or Remove Buttons menu (this menu enables users to customize a toolbar).

Applies to