Home > Working with SGWorld > Command (ICommand6) > IsChecked

IsChecked

This method determines the checked status of a menu command. IsChecked returns True when the specified command item is selected or toggled on.

 

JavaScript

 

IsChecked(

      CommandID,

      parameters)

 

C#

 

bool IsChecked(

      int   CommandID,

      object parameters)

 

C++

 

HRESULT IsChecked(

       long       CommandID,

       VARIANT    parameters,

       VARIANT_BOOL * bRes )

Parameters

CommandID

The ID of the menu command whose checked status is to be returned. See the list of menu commands organized according to TerraExplorer Ribbon tabs.

 

parameters

The command parameters.

Return Value

bRes

A Boolean that indicates whether the command is selected.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.