Contents
- Index
- Previous
- Next
FontHTMLSize property
Declaration
property FontHTMLSize: THTMLFontSize;
Description
Specifies the HTML font size of the selected text.
The property returns an HTML font size, 1-7. If the property cannot return a single font size (for example, if the selection contains text with non-standard font size or with different font sizes), the property returns 0.
Reading the property is only supported if the selection contains text. It returns the font size for the selection as established by the SIZE attribute of the <FONT> element. (It does not return an absolute point size). If the text has not been formatted with a specific HTML font size, the property returns the default font size for the selected element. If the selection is an element that does not support font information, such as a table, control, or image, the property returns 0.
Writing the property is only supported if the selection contains text. Writing the property adds a <FONT> element around the selection if one is not already there. Within the <FONT> element, writing the property adds or changes the SIZE attribute. If nothing is selected but the insertion point is within a word, writing the property treats the current word as the selection.
When writing the property, the new property value must be a value between 1 and 7, inclusive. Setting the property to a value of 0 is ignored.
Run-time only