Share via


TemplateRegionElement Object

SharePoint Designer Developer Reference

Represents a region in an HTML document that corresponds to a region in a Dynamic Web Template.

Interfaces
This object implements the following interfaces

Remarks

Use the templateRegions property to return an ElementCollection collection that represents a collection of all the Dynamic Web Template regions in a document. Use the Item method to return an individual TemplateRegionElement object that accesses a specific Dynamic Web Template region, referenced by ordinal number or by the name of the region. The following example accesses the first Dynamic Web Template region in the active document and sets the id attribute equal to the value of the name of the region.

Visual Basic for Applications
Dim objRegions As IHTMLElementCollection
Dim objRegion As TemplateRegionElement
Set objRegions = ActiveDocument.templateRegions
Set objRegion = objRegions.Item(0)
objRegion.Id = objRegion.Name

See Also