CommandBar.Protection Property
Returns or sets the way a command bar is protected from user customization.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Property Protection As MsoBarProtection
Get
Set
'Usage
Dim instance As CommandBar
Dim value As MsoBarProtection
value = instance.Protection
instance.Protection = value
MsoBarProtection Protection { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoBarProtection
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).