Share via


WebPartAdder.ShowSiteGalleryWebParts property

Gets or sets a flag that indicates whether the WebPartAdder shows the Web Parts from the site Web Part gallery.

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

Syntax

'Declaration
Public Property ShowSiteGalleryWebParts As Boolean
    Get
    Set
'Usage
Dim instance As WebPartAdder
Dim value As Boolean

value = instance.ShowSiteGalleryWebParts

instance.ShowSiteGalleryWebParts = value
public bool ShowSiteGalleryWebParts { get; set; }

Property value

Type: System.Boolean
true if the WebPartAdder shows the Web Parts from the site Web Part gallery; otherwise, false. The default is true.

See also

Reference

WebPartAdder class

WebPartAdder members

Microsoft.SharePoint.WebPartPages namespace