Skip to main content
This method allows you to find out whether the specified user-defined command is registered. You can use this method to check availability of an enumeration constant before registering a custom command.

Syntax

C++

HRESULT IsUserCommandRegistered(
  MenuItemEnum  CommandId,
  VARIANT_BOOL* Result
);

C#

bool IsUserCommandRegistered( MenuItemEnum CommandId );

Visual Basic .NET

Function IsUserCommandRegistered(CommandId As MenuItemEnum) As Boolean

Parameters

CommandId [in] Specifies a MenuItemEnum constant which corresponds to the user command. Result [out, retval] Specifies whether the command is registered. If the value is TRUE, such command has already been registered, and you cannot use this constant for another command.

Return values

This method has no specific return values. It returns the standard return values of the ABBYY FineReader Engine functions.

See also

Commands