CatalogIconImageUrl property
Collapse the table of content
Expand the table of content

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)

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).

© 2016 Microsoft