Share via


IHTMLHRElement Object

IHTMLHRElement

Represents an HR element in an HTML document. The IHTMLHRElement object provides access to a limited number of properties and methods related to HR elements. For access to all properties and methods, use the FPHTMLHRElement object.

Using the IHTMLHRElement 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 IHTMLHRElement 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 IHTMLHRElement

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

Properties | Align Property | color Property | noShade Property | size Property | width Property

Parent Objects

Child Objects