CommandBar.Protection Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns or sets the way a command bar is protected from user customization.
public:
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; }
member this.Protection : Microsoft.Office.Core.MsoBarProtection with get, set
Public Property Protection As MsoBarProtection
Property Value
Remarks
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).