fontFamily Property

Microsoft FrontPage Visual Basic

fontFamily Property

Sets or returns a String that represents the name of the font used to format the text within an HTML element.

expression.fontFamily

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following example modifies the style attribute of the BODY element in the active document with the specified background, border, font, and margin settings.

    ActiveDocument.body.Style.fontFamily = "Tahoma"