Click to return to the DHTML, HTML     
FontName Command | IDM_FO...     ForeColor Command | IDM_F...     Command Identifiers    
Web Workshop  |  DHTML, HTML & CSS

FontSize Command | IDM_FONTSIZE Command ID


Sets or retrieves the font size for the current selection.

Scripting Information

Command FontSize
execCommand vValue Required. String that specifies the font size, as described by the size attribute. This must be a value between 0 and 7, inclusive.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue

C++ Information

Command group CGID_MSHTML
Symbolic constant IDM_FONTSIZE
User interface None
IOleCommandTarget::Exec parameters
pvaIn Required. VT_I4 specifying the font size, as described by the size attribute. This must be a value between 0 and 7, inclusive.
pvaOut VT_I4 specifying the font size, as described by the size attribute. This will be a value between 0 and 7, inclusive.
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.