Share via


WebPartGallerySourceBase.AddItemToPage Method (WebPartZoneBase, Int32, WebPart)

Adds the specified WebPart to the page.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overridable Sub AddItemToPage ( _
    zone As WebPartZoneBase, _
    zoneIndex As Integer, _
    webPart As WebPart _
)
'Usage
Dim zone As WebPartZoneBase
Dim zoneIndex As Integer
Dim webPart As WebPart

Me.AddItemToPage(zone, zoneIndex, _
    webPart)
protected virtual void AddItemToPage(
    WebPartZoneBase zone,
    int zoneIndex,
    WebPart webPart
)

Parameters

Remarks

This method adds the WebPart to the page.

See Also

Reference

WebPartGallerySourceBase Class

WebPartGallerySourceBase Members

AddItemToPage Overload

Microsoft.SharePoint.WebPartPages Namespace