FPHTMLFontElement Object

Microsoft FrontPage Visual Basic

FPHTMLFontElement Object

FPHTMLFontElement Multiple objects

Represents a FONT element in an HTML document. See also the IHTMLFontElement object.

Using the FPHTMLFontElement Object

Use the tags method to return an IHTMLElementCollection collection that represents a collection of all FONT elements in a document. Use the Item method to return an FPHTMLFontElement object that accesses a specific FONT element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first FONT element in the active document.

    Dim objFont As FPHTMLFontElement

Set objFont = ActiveDocument.all.tags("font").Item(0)