LegendItem.MarkerImage Property

Definition

Gets or sets a marker image.

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

Property Value

A string value that represents the URL of an image file.

Attributes

Remarks

Represents a path to an image file, which can be an absolute or relative URL.

To use markers, set the MarkerStyle property to a value other than None.

The MarkerImage property takes precedence over the MarkerColor property.

A marker image can be any valid graphics file supported by .NET Framework, including icons.

To set one color of the marker image to be transparent, use the MarkerImageTransparentColor property.

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