DisabledCommandList Object
Description
This object represents a list of commands that are disabled in the given context. For example, a DisabledCommandList collection in the document context lists all commands disabled at the document level, while a DisabledCommandList collection at the environment level list commands disabled in a given environment. This collection object compliments the Enabled property of the ControlDefinition object.
Methods
Add |
Method that adds the specified command to the list. |
Remove |
Method that removes the specified command from the list. |
Properties
Application |
Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned. |
Count |
Read only property that returns the number of commands in the list. |
Item |
Returns the specified ControlDefinition from the list. |
Type |
Returns an ObjectTypeEnum indicating this object's type. |
Accessed From
AssemblyDocument.DisabledCommandList,
DrawingDocument.DisabledCommandList,
Environment.DisabledCommandList,
PartDocument.DisabledCommandList,
PresentationDocument.DisabledCommandList
Version
Introduced in version 10