Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

queryCommandText method

Retrieves the string associated with a command.

Syntax

object.queryCommandText(cmdID)

Parameters

cmdID [in]

Type: String

String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.

Return value

Type: String

Pointer to a String where the text associated with the command will be stored.

Standards information

There are no standards that apply here.

Remarks

This method is a wrapper function for the QueryStatus method to enable scriptable execution of some command constants. You can obtain an IOleCommandTarget interface by calling QueryInterface on the IHTMLDocument2 interface using IID_IHTMLDocument2 for the IID.

This method is a wrapper function for the QueryStatus method to enable scriptable execution of some command constants. You can obtain an IOleCommandTarget interface by calling QueryInterface on the IHTMLControlRange interface using IID_IHTMLControlRange for the IID.

This method is a wrapper function for the QueryStatus method to enable scriptable execution of some command constants. You can obtain an IOleCommandTarget interface by calling QueryInterface on the IHTMLTxtRange interface using IID_IHTMLTxtRange for the IID.

See also

controlRange
document
TextRange
queryCommandValue

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.