Enabled property
Determines whether or not an object is currently enabled.
Version added
4.0
Syntax
| |
| |
intVal |
Integer. False (0) if the object is disabled; True (-1) if it is enabled. |
object |
Required. An expression that returns an object in the Applies to list. |
intExpression |
Required Integer. False (0) to disable the object; True (non-zero) to enable the object. |
Remarks
You can get and set the Enabled property of an Event object. An Event object that is disabled doesn't perform its action when its event occurs.
An add-on implemented by an executable (EXE) file always reports itself as enabled. An add-on implemented by a Visio Solutions Library (VSL) file reports itself as enabled or disabled according to the enabling policy that the VSL file has registered for that add-on.
You can't tell an add-on to enable or disable itself. Visio will not send a run message to a disabled add-on. The name of a disabled add-on on a Visio menu appears dimmed or gray.