Share via


ImgElement.all Property

SharePoint Designer Developer Reference

Returns an ElementCollection object that represents a reference to the collection of all elements contained within a specified object.

Syntax

expression.all

expression   Required. A variable that represents an ImgElement object.

Remarks

The ElementCollection object includes one element object for each valid HTML tag. If a valid tag has a matching end tag, both tags are represented by the same element object. If the document contains invalid or unknown tags, the collection includes one element object for each. Unlike valid end tags, unknown end tags are represented by their own IHTMLElement objects.

The order of the elements in an ElementCollection object is the same order in which the elements occur in the HTML source code. Although the ElementCollection object indicates the order of the tags, it does not indicate hierarchy. This behavior is different from the children property, which returns an ElementCollection object that represents only the top-level elements that are direct descendants of the specified element and not any nested elements.

See Also