FPHTMLHRElement Object

Microsoft FrontPage Visual Basic

FPHTMLHRElement Object

FPHTMLHRElement Multiple objects

Represents an HR element in an HTML document. See also the IHTMLHRElement object.

Using the FPHTMLHRElement Object

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

    Dim objLine As FPHTMLHRElement

Set objLine = ActiveDocument.all.tags("hr").Item(0)