IHTMLBaseFontElement Object

IHTMLBaseFontElement

Represents the BASEFONT element in an HTML document. Use the IHTMLBaseFontElement object to specify base font characteristics such as name, size, and color. The IHTMLBaseFontElement object provides access to a limited number of properties and methods for the BASEFONT element. For access to all properties and methods, use the FPHTMLBaseFontElement object.

Using the IHTMLBaseFontElement object

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

Dim objBaseFont As IHTMLBaseFontElement

Set objBaseFont = ActiveDocument.body.all.tags("basefont").Item(0)

Properties | color Property | face Property | size Property

Parent Objects

Child Objects