WebPart.CatalogIconImageUrl property

Gets or sets the URL to an image used to represent the Web Part in a catalog.

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


<WebPartStorageAttribute(Storage.None)> _
Public Overrides Property CatalogIconImageUrl As String
Dim instance As WebPart
Dim value As String

value = instance.CatalogIconImageUrl

instance.CatalogIconImageUrl = value
public override string CatalogIconImageUrl { get; set; }

Property value

Type: System.String
A string containing a URL. The default value is String.Empty.




The CatalogIconImageUrl property provides a way to associate a small image with a Web Part control’s entry in a catalog such as the Add Web Parts dialog. For thematic consistency, application developers often make this icon similar to the image that represents the control in the Web Part’s own title bar (the image referenced in the TitleIconImageUrl property).

You can set a value for the property programmatically in the code for the control or declaratively in the markup of a Web Part control description file (.webpart).

See also


WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace