Protection property

Protection property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

See also         Example         Applies to

Determines how an object is protected from user customization.

Version added

2000

Syntax

        
          intRet = object.Protection
      
        
          object.Protection = intExpression
      

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.