IHTMLStyle Object

Microsoft FrontPage Visual Basic

IHTMLStyle Object

Multiple objects IHTMLStyle

Represents a style attribute for the cascading style sheet (CSS) for an HTML element. The IHTMLStyle object provides access to a limited number of properties and methods related to the style attribute. For access to all properties and methods, use the FPHTMLStyle object.

Using the IHTMLStyle object

Use the style property to return an IHTMLStyle object. The following example accesses the style attribute for the body of the active document.

    Dim objStyle As IHTMLStyle

Set objStyle = ActiveDocument.body.Style