imports Property

Microsoft FrontPage Visual Basic

imports Property

Returns an FPHTMLStyleSheetsCollection collection that represents STYLE elements that contain the @import statement.

expression.imports

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

Use the addImport method to add an imported style sheet to the collection of imported style sheets for a STYLE element. Use the removeImport method to remove an imported style sheet from the collection.

Example

The following example checks to see if there are any imported style sheets referenced in the first STYLE element in the active document. If there are no imported stylesheets, a new imported style sheet reference is added to the STYLE element.

    Dim objStyle As FPHTMLStyleSheet
Set objStyle = ActiveDocument.styleSheets.Item(0)

If objStyle.imports.Length = 0 Then
    objStyle.addImport ("web.css")
End If