WebPartGalleryItemBase.GetPreviewHtml method

Returns an HTML preview for this WebPart.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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