Export (0) Print
Expand All

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 override string CatalogIconImageUrl { get; set; }

Property value

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

Implements

IWebPart.CatalogIconImageUrl

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

Community Additions

Show:
© 2014 Microsoft