FPHTMLWebPartZoneElement Object

FPHTMLWebPartZoneElement
Multiple objects

Represents a Web Part zone in an HTML document. See also the IHTMLWebPartZoneElement object.

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

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

Set objZone = ActiveDocument.webPartZones.Item(0)

Use the InsertAdjacentHTML method, as shown in the following example, to insert a Web Part Zone into a document.

Public Sub InsertWebPartZone()

    Dim strWebPartZone As String
    
    strWebPartZone = "<form runat=""server"">" & vbCrLf & _
        "<WebPartPages:WebPartZone id=""Zone1"" " & _
        "runat=""server"" title=""Zone 1"">" & vbCrLf & _
        "</WebPartPages:WebPartZone>" & vbCrLf & "</form>"
        
    ActiveDocument.body.insertAdjacentHTML "afterBegin", strWebPartZone
    
End Sub

Properties | all Property | allowCustomization Property | allowPersonalization Property | children Property | className Property | containerWidth Property | Document Property | filters Property | frameType Property | id Property | innerHTML Property | innerText Property | isTextEdit Property | lang Property | language Property | lockLayout Property | offsetHeight Property | offsetLeft Property | offsetParent Property | offsetTop Property | offsetWidth Property | onafterupdate Property | onbeforeupdate Property | onclick Property | ondataavailable Property | ondatasetchanged Property | ondatasetcomplete Property | ondblclick Property | ondragstart Property | onerrorupdate Property | onfilterchange Property | onhelp Property | onkeydown Property | onkeypress Property | onkeyup Property | onmousedown Property | onmousemove Property | onmouseout Property | onmouseover Property | onmouseup Property | onrowenter Property | onrowexit Property | onselectstart Property | orientation Property | outerHTML Property | outerText Property | parentElement Property | parentTextEdit Property | recordNumber Property | sourceIndex Property | style Property | tagName Property | title Property | webParts Property | zoneId Property | zoneTitle Property

Methods | click Method | contains Method | getAttribute Method | insertAdjacentHTML Method | insertAdjacentText Method | removeAttribute Method | scrollIntoView Method | setAttribute Method | toString Method

Events | onafterupdate Event | onbeforeupdate Property | onclick Event | ondataavailable Event | ondatasetchanged Event | ondatasetcomplete Event | ondblclick Event | ondragstart Event | onerrorupdate Event | onfilterchange Event | onhelp Event | onkeydown Property | onkeypress Event | onkeyup Event | onmousedown Event | onmousemove Event | onmouseout Event | onmouseover Event | onmouseup Event | onrowenter Event | onrowexit Event | onselectstart Event

Parent Objects

Child Objects | IHTMLElement Object | IHTMLElementCollection Object | IHTMLFiltersCollection Object | IHTMLStyle Object