LegendItem.Image Property

Definition

Gets or sets the image that will be displayed for a legend item symbol.

C#
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public string Image { get; set; }

Property Value

A string value that represents the URL of an image file. The default value is an empty string.

Attributes

Remarks

This property determines the image file to be used for the LegendItem symbol.

The path can be an absolute or a relative URL.

If you set a background image, that image will be displayed regardless of the ImageStyle property setting.

Set the BackImageTransparentColor property to enable one color used by the image to appear transparent.

Note

This property is applicable only to LegendCell objects with a LegendCellType of either SeriesSymbol or Image.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1