Click to return to the DHTML, HTML     
Find Command | IDM_FIND C...     FontSize Command | IDM_FO...     Command Identifiers    
Web Workshop  |  DHTML, HTML & CSS

FontName Command | IDM_FONTNAME Command ID


Sets or retrieves the font for the current selection.

Scripting Information

Command FontName
execCommand vValue Required. String that specifies a legal font name, as described by the FONT attribute.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue

C++ Information

Command group CGID_MSHTML
Symbolic constant IDM_FONTNAME
User interface None
IOleCommandTarget::Exec parameters
pvaIn Required. VT_BSTR specifying a legal font name, as described by the FONT attribute.
pvaOut VT_BSTR representing a legal font name, as described by the FONT attribute.
Header file Mshtmcid.h
Applies to IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus

Minimum Availability

Internet Explorer 4.0 and later



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.