Contents - Index - Previous - Next


FontDialog method




Declaration
function FontDialog: Boolean;

Description

Displays the Font dialog box and applies the user's choices to the selection.

Executing the dialog adds a <FONT> element around the selection if one is not already there. Within the <FONT> element, the method sets the COLOR, FACE, and SIZE attributes with information taken from the dialog box. The method will also add <STRONG>, <EM>, or <U> tags around the selection as appropriate.

If nothing is selected but the insertion point is within a word, the method treats the current word as the selection.

Note:  Although the Font dialog box displays font sizes in points, the method translates these into HTML font sizes (in the range 1 to 7).

Returns True if the dialog was displayed. Returns False if the selection includes an element, such as a table, that does not support the <FONT> element.