Partilhar via


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<WebPartStorageAttribute(Storage.None)> _
Public Overrides Property CatalogIconImageUrl As String
    Get
    Set
'Usage
Dim instance As WebPart
Dim value As String

value = instance.CatalogIconImageUrl

instance.CatalogIconImageUrl = value
[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

Remarks

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

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace