IsAnyTypeSelected Data Member Function

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.

Prototype

static int32 IsAnyTypeSelected( CommandPresentationModuleInfo p_oInfo, TypeInfoArray p_poTypes, int32 p_nCount, int32 p_bMatch, string p_sHint )

Parameters

Parameter Type Parameter Name Documentation
<CommandPresentationModuleInfo>p_oInfoA pointer to the <CommandPresentationModuleInfo> object that is managing command display for the application.
<TypeInfoArray>p_poTypesA pointer to a <TypeInfoArray> that contains the set of types to test the selection against.
int32p_nCountThe number of items that must be selected. Use -1 to allow any number of selected items.
int32p_bMatchThe type of the selected <Node> object must match exactly if true. Otherwise a subclass is considered a valid match.
stringp_sHintThe hint text to display in the status bar, for both success and failure cases. This hint will be displayed in the UI status bar at the lower left corner of the application.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.