Chart.ImageLocation 属性

定义

获取或设置执行 ImageTag 呈现时,图像文件的保存位置。

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

属性值

String

一个 string 值,表示图像文件在服务器上的保存位置(以 URL 表示)。

属性

注解

如果 ImageStorageMode 设置为 ImageStorageMode.UseHttpHandler.,则此属性无效。

使用图像标记方法呈现图表图像时,将生成图表图像,然后以属性确定 ChartImageType 的格式保存到服务器上的磁盘。

保存图像文件的 URL 可以是绝对的或相对的;映像文件的文件扩展名由 ChartImageType 属性确定。

图像文件可以硬编码为始终为一个文件名,也可以使用“#”符号来使用用户标识符 (UID) 或指定数量的唯一命名文件(称为轮循机制)。

适用于