WebPartGalleryItemBase.GetPreviewHtml Method

Returns an HTML preview for this WebPart.

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

Syntax

'Declaration
Public Overrides Function GetPreviewHtml As String
'Usage
Dim instance As WebPartGalleryItemBase
Dim returnValue As String

returnValue = instance.GetPreviewHtml()
public override string GetPreviewHtml()

Return Value

Type: System.String
An HTML preview of the WebPart.

Remarks

This override provides a default implementation of getting an HTML preview for a WebPart represented by this item.

See Also

Reference

WebPartGalleryItemBase Class

WebPartGalleryItemBase Members

Microsoft.SharePoint.WebPartPages Namespace