Condividi tramite


IDM_GETBLOCKFMTS Command ID

Retrieves the strings corresponding to the available block format tags.

C++ Information

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_GETBLOCKFMTS
User interface None. Set nCmdExecOpt to OLECMDEXECOPT_DONTPROMPTUSER.
IOleCommandTarget::Exec parameters
pvaIn Set to NULL.
pvaOutVARIANT of type VT_ARRAY that receives the available block format tags. Upon successful return, pvaOut points to a SAFEARRAY of BSTR objects. The caller is responsible for releasing the contents of the SAFEARRAY using the SafeArrayDestroyData and SafeArrayDestroy APIs methods.
Header file mshtmcid.h
Applies to IHTMLDocument2::execCommand, IHTMLDocument2::queryCommandEnabled, IHTMLDocument2::queryCommandIndeterm, IHTMLDocument2::queryCommandState, IHTMLDocument2::queryCommandSupported, IHTMLDocument2::queryCommandValue, IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus.

Remarks

Use the values returned from this Command ID when calling IOleCommandTarget::Exec with the IDM_BLOCKFMT Command ID.

Minimum Availability

Internet Explorer 4.0 and later.