Share via


FontElement Object

SharePoint Designer Developer Reference

Represents a FONT element in an HTML document.

Interfaces
This object implements the following interfaces

Remarks

Use the tags method to return an ElementCollection collection that represents a collection of all FONT elements in a document. Use the Item method to return a FontElement 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.

Visual Basic for Applications
Dim objFont As FontElement
Set objFont = ActiveDocument.all.tags("font").Item(0)

See Also