Chart.BackImage Property


获取或设置 Chart 控件的背景图像。Gets or sets the background image of the Chart control.

 property System::String ^ BackImage { System::String ^ get(); void set(System::String ^ value); };
public string BackImage { get; set; }
member this.BackImage : string with get, set
Public Property BackImage As String

Property Value


一个 string 值,该值表示图像文件的 URL。A string value that represents the URL of an image file. 默认值为一个空字符串。The default value is an empty string.



此属性定义 Chart 图例的背景图像的路径,可以是绝对或相对 URL。This property defines a path to a background image for a Chart legend, and can be an absolute or relative URL.

若要定位图像,请使用 "BackImageAlignment" 和 "BackImageWrapMode" 属性。To position the image, use the BackImageAlignment and BackImageWrapMode properties.

还可以通过设置 "BackImageTransparentColor" 属性,将图像显示的一种颜色指定为 "透明"。You can also specify one of the colors displayed by the image as "transparent", by setting the BackImageTransparentColor property.

图像可以来自 .NET Framework 支持的任何有效图形文件,包括图标。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.

Applies to