Protection property
Determines how an object is protected from user customization.
Version added
2000
Syntax
| |
| |
|
intRet |
Integer. The existing protections for a MenuSet or Toolbar object. |
|
object |
Required. An expression that returns a MenuSet or Toolbar object. |
|
intExpression |
Required Integer. The new protections for a MenuSet or Toolbar object. |
Remarks
The value of intExpression can be one or a combination of the following constants declared by the Visio type library in VisUIBarProtection.
|
Constant |
Value |
Description |
|
visBarNoProtection |
0 |
No protection. |
|
visBarNoCustomize |
1 |
Can't be customized. |
|
visBarNoResize |
2 |
Can't be resized. |
|
visBarNoMove |
4 |
Can't be moved. |
|
visBarNoChangeDock |
16 |
Can't be docked or floating. |
|
visBarNoVerticalDock |
32 |
Can't be docked vertically. |
|
visBarNoHorizontalDock |
64 |
Can't be docked horizontally. |