API Help
Eplan.EplApi.Gui Namespace / Menu Class / IsActionEnabled Method
the name of the action (optional: with some parameters)
Example

In This Topic
    IsActionEnabled Method
    In This Topic
    Get the enabled/disabled state of a action in a menu (or/and on a toolbar)
    Syntax
    public bool IsActionEnabled( 
       string strNameOfAction
    )
    public:
    bool IsActionEnabled( 
       String^ strNameOfAction
    ) 

    Parameters

    strNameOfAction
    the name of the action (optional: with some parameters)

    Return Value

    true when the action is enabled
    Example
    Eplan.EplApi.Gui.Menu theMenuToCheck = new Eplan.EplApi.Gui.Menu();
    bool bIsEnabled = theMenuToCheck.IsActionEnabled("CustomAction1 /Parameter1:Value1");
    See Also