IHTMLXSLWebPartElement Object

Microsoft FrontPage Visual Basic

IHTMLXSLWebPartElement Object

IHTMLXSLWebPartElement

Represents an Extensible Stylesheet Language (XSL) Data View Web Part. The IHTMLXSLWebPartElement object provides access to a limited number of properties and methods related to the XSL Data View Web Part. For access to all properties and methods, use the FPHTMLXSLWebPartElement object.

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

Using the IHTMLXSLWebPartElement object

Use the webParts property to return an IHTMLElementCollection collection that represents a collection of all the Web Parts in a document. Use the Item method to return an IHTMLXSLWebPartElement object that accesses a specific XSL Data View Web Part, referenced by ordinal number or by the value of the id attribute. The following example accesses the first Web Part in the active document. This example assumes that the first Web Part is an XSL Data View Web Part.

    Dim objXSLWebPart As IHTMLXSLWebPartElement

Set objXSLWebPart = ActiveDocument.webParts.Item(0)