Share via


IHTMLWebPartZoneElement Object

IHTMLWebPartZoneElement
IHTMLElementCollection

Represents a Web part zone in an HTML document. The IHTMLWebPartZoneElement object provides access to a limited number of properties and methods related to the Web Part zone. For access to all properties and methods, use the FPHTMLWebPartZoneElement object.

This object is supported only by Web pages or sites that are based on Microsoft Windows SharePoint Services.

Using the IHTMLWebPartZoneElement object

Use the webPartZones property to return an IHTMLElementCollection collection that represents a collection of all the Web Part zones in a document. Use the Item method to return an IHTMLWebPartZoneElement object that accesses a specific Web Part zone, referenced by ordinal number or by the value of the id attribute. The following example accesses the first Web Part zone in the active document.

Dim objZone As IHTMLWebPartZoneElement

Set objZone = ActiveDocument.webPartZones.Item(0)

Properties | allowCustomization Property | allowPersonalization Property | containerWidth Property | frameType Property | lockLayout Property | orientation Property | webParts Property | zoneId Property | zoneTitle Property

Parent Objects

Child Objects | IHTMLElementCollection Object