FPHTMLTemplateRegionElement Object

Microsoft FrontPage Visual Basic

FPHTMLTemplateRegionElement Object

FPHTMLTemplateRegionElement Multiple objects

Represents a region in an HTML document that corresponds to a region in a Dynamic Web Template. See also the IHTMLTemplateRegionElement object.

Using the FPHTMLTemplateRegionElement 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 FPHTMLTemplateRegionElement 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 FPHTMLTemplateRegionElement

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

objRegion.Id = objRegion.Name