System.Windows.Forms.HtmlDocument.ExecCommand Method

Executes the specified command against the document.

Syntax

public void ExecCommand (string command, bool showUI, object value)

Parameters

command
The name of the command to execute.
showUI
Whether or not to show command-specific dialog boxes or message boxes to the user.
value
The value to assign using the command. Not applicable for all commands.

Remarks

HtmlDocument.ExecCommand(string, bool, object) exposes a large array of commands for which there are no methods exposed on System.Windows.Forms.HtmlDocument. Using HtmlDocument.ExecCommand(string, bool, object) you can insert new HTML elements, select and format text, and clear any cached authentication credentials. For a full list of commands, see tp://go.microsoft.com/fwlink/?LinkId=198814.

Note:

Certain commands, such as copy, have return values. In the current implementation of HtmlDocument.ExecCommand(string, bool, object), you cannot obtain a return value from your call. To retrieve return values, use the corresponding unmanaged method on a HtmlDocument.DomDocument reference instead.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0