Share via


IHTMLFontElement Object

IHTMLFontElement

Represents a FONT element in an HTML document. The IHTMLFontElement object provides access to a limited number of properties and methods related to the FONT element. For access to all properties and methods, use the FPHTMLFontElement object.

Using the IHTMLFontElement 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 IHTMLFontElement 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 IHTMLFontElement

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

Properties | color Property | face Property | size Property

Parent Objects

Child Objects