IHTMLTxtRange::execCommandIHTMLTxtRange::execCommand*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLTxtRange::duplicate
*Next Topic: IHTMLTxtRange::execCommandShowHelp

IHTMLTxtRange::execCommand


HRESULT execCommand(
    BSTR cmdID,
    VARIANT_BOOL showUI,
    VARIANT value,
    VARIANT_BOOL *pfRet
);

Executes the given command over the current selection or text range.

cmdID
Identifier of a command. Can be any command identifier given in the list of Command Identifiers.
showUI
Flag specifying whether to display a user interface if the command supports one. If TRUE, the command displays a user interface, if applicable; otherwise, it doesn't.
value
Value to pass to the command. Possible values depend on the value of cmdID.
pfRet
Address of a variable that receives TRUE if the function is successful, or FALSE otherwise.

See also execCommandShowHelp


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.