FPHTMLLIElement Object

Microsoft FrontPage Visual Basic

FPHTMLLIElement Object

FPHTMLLIElement Multiple objects

Represents a LI element in an HTML document. See also the IHTMLLIElement object.

Using the FPHTMLLIElement Object

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

    Dim objItem As FPHTMLLIElement

Set objItem = ActiveDocument.all.tags("li").Item(0)
  

The following example accesses the first LI element in the first ordered list in the active document.

    Dim objList As FPHTMLUListElement
Dim objItem As FPHTMLLIElement

Set objList = ActiveDocument.all.tags("ul").Item(0)
Set objItem = objList.all.tags("li").Item(0)