IHTMLTemplateRegionElement Object

IHTMLTemplateRegionElement

Represents a region in an HTML document that corresponds to a region in a Dynamic Web Template. The IHTMLTemplateRegionElement object provides access to a limited number of properties and methods related to Dynamic Web Template regions. For access to all properties and methods, use the FPHTMLTemplateRegionElement object.

Using the IHTMLTemplateRegionElement object

Use the templateRegions property to return an IHTMLElementCollection collection that represents a collection of all the Dynamic Web Template regions in a document. Use the Item method to return an individual IHTMLTemplateRegionElement 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.

Dim objRegions As IHTMLElementCollection
Dim objRegion As IHTMLTemplateRegionElement

Set objRegions = ActiveDocument.templateRegions
Set objRegion = objRegions.Item(0)

objRegion.Id = objRegion.Name

Properties | name Property

Parent Objects

Child Objects