Share via


TemplateRegionElement.children Property

SharePoint Designer Developer Reference

Returns an ElementCollection collection that represents a collection of elements that are direct descendants of a region in a Dynamic Web Template.

Syntax

expression.children

expression   Required. A variable that represents a TemplateRegionElement object.

Remarks

If the document contains invalid or unknown tags, the ElementCollection object includes one element object for each. Unlike valid end tags, unknown end tags are represented by their own objects. When you use the children property, the order of the elements in an object indicates the hierarchy and includes only the top-level elements that are direct descendants of the specified element and not any nested elements.

Note

This behavior is different from the all property, which returns an ElementCollection object that represents all tags regardless of hierarchy.

See Also