WebPartGallerySourceBase.AddItemToPage Method (WebPartZoneBase, Int32, WebPartGalleryItem, String)
Adds the WebPartGalleryItem that is represented by the WebPart class.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Overrides Sub AddItemToPage ( _
zone As WebPartZoneBase, _
zoneIndex As Integer, _
item As WebPartGalleryItem, _
wpid As String _
)
'Usage
Dim instance As WebPartGallerySourceBase
Dim zone As WebPartZoneBase
Dim zoneIndex As Integer
Dim item As WebPartGalleryItem
Dim wpid As String
instance.AddItemToPage(zone, zoneIndex, _
item, wpid)
public override void AddItemToPage(
WebPartZoneBase zone,
int zoneIndex,
WebPartGalleryItem item,
string wpid
)
Parameters
zone
Type: System.Web.UI.WebControls.WebParts.WebPartZoneBaseThe zone to which the WebPartGalleryItem is added.
zoneIndex
Type: System.Int32The index position of the WebPart within its zone.
item
Type: Microsoft.SharePoint.WebPartPages.WebPartGalleryItemThe item to be added to the page.
wpid
Type: System.StringThe ID of the WebPart.
Remarks
This override adds the WebPartGalleryItem that is represented by the WebPart class to the page.
See Also
Reference
WebPartGallerySourceBase Class