Chart.BackImage 属性


获取或设置 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


一个 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.

若要定位图像,请使用BackImageAlignmentBackImageWrapMode属性。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.