This topic has not yet been rated - Rate this topic

Legend.BackImage Property

Gets or sets the background image of a legend.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)
[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
public string BackImage { get; set; }

Property Value

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

This property defines a path to a background image for a Chart legend, and can be an absolute or relative URL.

To position the image, use the BackImageAlignment and BackImageWrapMode properties.

You can also specify one of the colors displayed by the image as "transparent", by setting the BackImageTransparentColor property.

An image can originate from any valid graphics file supported by .NET Framework, including icons.

Background images take precedence over other background properties such as gradient color.

.NET Framework

Supported in: 4.5, 4

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.