Title.BackImage 属性

定义

获取或设置标题的背景图像。Gets or sets the background image of the title.

public:
 property System::String ^ BackImage { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public string BackImage { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.BackImage : string with get, set
Public Property BackImage As String

属性值

String

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

属性

注解

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

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

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

图像是 .NET Framework 支持的任何有效图形文件,包括图标。An image be any valid graphics file supported by .NET Framework, including icons.

背景图像优先于其他背景属性,如渐变颜色。Background images take precedence over other background properties such as gradient color.

适用于