Export (0) Print
Expand All

Commands N-R (C++)

Command identifiers N-R for C++.

IDM_OPEN

Not supported.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_OPEN
Header filemshtmcid.h

 

IDM_ORDERLIST

Toggles the text selection between an ordered list and a normal format block.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_ORDERLIST
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

VARIANT of type VT_BSTR that specifies an id attribute for the ordered list. May be set to NULL or omitted.

pvaOut

Set to NULL.

If the previous format block is already an ordered list, this command identifier will append the current format block to that previous ordered list. If the text selection contains named objects, they are replaced by the list.

The following example converts the paragraphs of a document into a list:


var tr = document.body.createTextRange();
tr.execCommand("InsertOrderedList", false, 'listId'); 

IDM_OUTDENT

Decreases by one increment the indentation of the format block in which the current selection is located.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_OUTDENT
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

IDM_OVERWRITE

Toggles the text-entry mode between insert and overwrite.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_OVERWRITE
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

VARIANT of type VT_BOOL that specifies the text-entry mode. If this value is set to TRUE or NULL, the text-entry mode is overwrite. If this value is set to FALSE (the default), the text-entry mode is insert.

pvaOut

Set to NULL.

IDM_PARAGRAPH

Overwrites a line break on the text selection.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_PARAGRAPH
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

VARIANT of type VT_BSTR that specifies an id attribute for the paragraph. May be set to NULL or omitted.

pvaOut

Set to NULL.

IDM_PASTE

Overwrites the contents of the clipboard on the current selection.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_PASTE
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

IDM_PASTECONTENTONLY

Removes styling and font and paragraph formatting (such as font size, alignment, and indentation) while retaining links, images, lists, and tables.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_PASTECONTENTONLY
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

IDM_PASTETEXTONLY

Uses text formats on the clipboard instead of HTML or image formats, resulting in only text being pasted. If there is only HTML on the clipboard, this command will not paste anything.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_PASTETEXTONLY
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

IDM_RADIOBUTTON

Overwrites a radio control on the text selection.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_RADIOBUTTON
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

VARIANT of type VT_BSTR that specifies an id attribute for the radio control. May be set to NULL or omitted.

pvaOut

Set to NULL.

IDM_REDO

Not supported.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_REDO
Header filemshtmcid.h

 

IDM_REFRESH

Refreshes the current document.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_REFRESH
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

IDM_REMOVEFORMAT

Removes the formatting tags from the current selection.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_REMOVEFORMAT
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

IDM_REMOVEPARAFORMAT

Not supported.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_REMOVEPARAFORMAT
Header filemshtmcid.h

 

 

 

Show:
© 2014 Microsoft