Property

Method

Event

 

 

IsCommandEnabled

Gets the enabled or disabled status of the specified command.

Syntax

    HRESULT IsCommandEnabled(
    BSTR keyword,
    VARIANT* pbEnabled
    );

Parameters

keyword

[in] Keyword of the command.

pbEnabled

[out, retval] Status of the command.

0

Disabled

others

Enabled

Return Values

0 (always)

Sample Codes

VBScript

dim object, x
set object = document.editForm
x = object.wec.IsCommandEnabled("FontList")