The <ValidateNodeCommandContext> class is used to automate user interface state handling for script commands that require certain node types to be selected in order to function properly.
Class Hierarchy | Type » ValidateNodeCommandContext |
Function members are as follows:
Return Type | Function Name | Documentation |
---|---|---|
static int32 | DisableIfParent | Disables the command if the parent is derived from the specified type or types. |
static int32 | IsAnyTypeSelected | Returns true if the <TypeInformation> of every item in the selection matches the <TypeInformation> objects contained in the <TypeInfoArray> submitted to this function. You can specify whether to use exact matches or subclass matches. |
static int32 | TestContext | Sets the UI state for commands which require a certain <Node> type to be selected in order to function properly. If any <Node> objects of type 'NodeType' are selected, the hint is printed directly. Otherwise, the hint is printed in conjunction with information on how to enable the command. |
static int32 | TestParent | Enables the command in the UI if the parent is derived from the specified type. |
static int32 | TestSelection | Tests the selection and enables the command if the selection matches the specification submitted to this function. |