Share via


WebPartGalleryItem.WebPartContent property

When overridden in a derived class, gets or sets embedded HTML that provides content for this WebPart.

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

Syntax

'Declaration
Public MustOverride Property WebPartContent As String
    Get
    Set
'Usage
Dim instance As WebPartGalleryItem
Dim value As String

value = instance.WebPartContent

instance.WebPartContent = value
public abstract string WebPartContent { get; set; }

Property value

Type: System.String
Embedded HTML that provides content for this WebPart.

See also

Reference

WebPartGalleryItem class

WebPartGalleryItem members

Microsoft.SharePoint.WebPartPages namespace