Gets or sets a value that indicates the font size used for text in the object.
HRESULT IHTMLStyle::get_fontSize(VARIANT *p);HRESULT IHTMLStyle::put_fontSize(VARIANT v);
- Pointer to a variable of type VARIANT of type VT_BSTR that receives one of the values listed in Possible Values.
- VARIANT of type VT_BSTR that specifies one of the values listed in Possible Values.
absolute-size Set of keywords that indicate predefined font sizes. Named font sizes scale according to the user's font setting preferences. Possible values include the following: xx-small, x-small, small, medium, large, x-large, xx-large. relative-size Set of keywords that are interpreted as relative to the font size of the parent object. Possible values include the following: larger, smaller. length Floating-point number, followed by an absolute units designator (
pc) or a relative units designator (
px). For more information about the supported length units, see the CSS Length Units Reference.
percentage Integer, followed by a percent (%). The value is a percentage of the parent object's font size. In Microsoft Internet Explorer 3.0, the value is calculated as a percentage of the default font size.
Returns S_OK if successful, or an error value otherwise.
Negative values are not allowed. Font sizes using the proportional "em" measure are based on the font size of the parent object.
As of Internet Explorer 6, when you use the !DOCTYPE declaration to specify standards-compliant mode, the default value for this property is
Possible length values specified in a relative measurement, using the height of the element's font (em) or the height of the letter "x" (ex), are supported in Internet Explorer 4.0 and later.