Table of Contents

Method IsCommandEnabled

Namespace
DotNetBrowser.Frames
Assembly
DotNetBrowser.dll

IsCommandEnabled(EditorCommand)

Indicates if the command with the given command can be executed in the frame. Some commands can be executed only under certain conditions. For example, the InsertText(string) command can be executed only if there's a focused text field in the frame.

bool IsCommandEnabled(EditorCommand command)

Parameters

command EditorCommand

The command to check.

Returns

bool

true if the command is enabled and can be executed.

Exceptions

ObjectDisposedException

The IFrame object has already been disposed.

ArgumentException

The command is null.