IHTMLDivElement Object
IHTMLDivElement |
Represents a DIV element in an HTML document. The IHTMLDivElement object provides access to a limited number of properties and methods that relate to the DIV element. For access to all properties and methods, use the FPHTMLDivElement object.
Using the FPHTMLDivElement Object
Use the tags method to return an IHTMLElementCollection collection that represents all the DIV elements in a document. Use the Item method to return an IHTMLDivElement object that accesses a specific DIV element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first DIV element in the active document.
Dim objDiv As IHTMLDivElement
Set objDiv = ActiveDocument.all.tags("div").Item(0)
Properties | Align Property | noWrap Property
Parent Objects
Child Objects