FPHTMLStyleElement Object

Microsoft FrontPage Visual Basic

FPHTMLStyleElement Object

FPHTMLStyleElement Multiple objects

Represents a STYLE element in an HTML document. See also the IHTMLStyleElement object.

Using the FPHTMLStyleElement object

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

    Dim objStyle As FPHTMLStyleElement

Set objStyle = ActiveDocument.all.tags("style").Item(0)