WebPartGallerySourceBase.AddItemToPage method (WebPartZoneBase, Int32, WebPart)
Adiciona o especificado WebPart para a página.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Protected Overridable Sub AddItemToPage ( _
zone As WebPartZoneBase, _
zoneIndex As Integer, _
webPart As WebPart _
)
'Uso
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
)
Parâmetros
zone
Type: System.Web.UI.WebControls.WebParts.WebPartZoneBaseA zona à qual a WebPartGalleryItem será adicionado.
zoneIndex
Type: System.Int32A posição do índice de WebPart dentro da zona.
webPart
Type: System.Web.UI.WebControls.WebParts.WebPartA Web Part a ser adicionado à página.
Comentários
Este método adiciona o WebPart para a página.
Ver também
Referência
WebPartGallerySourceBase class