WebPartAdder.ShowServerGalleryWebParts property

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

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

Syntax

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

value = instance.ShowServerGalleryWebParts

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

Property value

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

See also

Reference

WebPartAdder class

WebPartAdder members

Microsoft.SharePoint.WebPartPages namespace