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
commandEditorCommandThe command to check.
Returns
- bool
trueif the command is enabled and can be executed.
Exceptions
- ObjectDisposedException
The IFrame object has already been disposed.
- ArgumentException
The
commandis null.