templateRegions Property

Returns an IHTMLElementCollection collection that represents the Dynamic Web Template regions in a document.

expression.templateRegions

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example accesses the first region for the attached Dynamic Web Template and sets the id attribute equal to the value of the region's name.

Dim objRegions As IHTMLElementCollection
Dim objRegion As FPHTMLTemplateRegionElement

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

objRegion.Id = objRegion.Name

Applies to | FPHTMLDocument Object | IFPDocument Object | IFPDocument Object