Share via


TemplateRegionElement.contains Method

SharePoint Designer Developer Reference

Returns a Boolean that represents whether an element is contained within another element. True indicates that the element specified in the pChild parameter is contained within a region in a Dynamic Web Template.

Syntax

expression.contains(pChild)

expression   Required. A variable that represents a TemplateRegionElement object.

Parameters

Name Required/Optional Data Type Description
pChild Required IHTMLElement The child element contained within the specified object.

Remarks

Use the contains method to quickly determine whether an element is contained within another element.

See Also