Title.MapAreaAttributes 属性
定义
获取或设置标题的映射区特性。Gets or sets the map area attributes of the title.
public:
property System::String ^ MapAreaAttributes { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public string MapAreaAttributes { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.MapAreaAttributes : string with get, set
Public Property MapAreaAttributes As String
属性值
一个 string 值,表示标题的映射区域特性。A string value that represents the map area attributes of the title. 默认值为零长度字符串。The default is a zero-length string.
实现
- 属性
注解
如果设置了 MapAreaAttributes 属性,则会自动创建客户端图像映射。If you set the MapAreaAttributes property, a client-side image map will automatically be created. 还将创建一个映射区,并将其属性字符串追加到标记,该标记与要为 <MAP> 其设置此属性的图表对象相对应。A map area will also be created, with its attribute string appended to the <MAP> tag that corresponds to the chart object for which this property is being set.
由于将整个特性字符串追加到 <MAP> 标记,因此应使用空格分隔多个属性。Because the entire attribute string is appended to the <MAP> tag, multiple attributes should be separated with a space.
MapAreaAttributes属性可与属性结合使用, Url 以指定映射区特性,例如 Target = _Blank,以及客户端事件处理程序,如 OnClick = "MyEvent () "。The MapAreaAttributes property can be used in conjunction with the Url property to specify map area attributes, for example, Target= _Blank, as well as client-side event handlers, for example, OnClick="MyEvent()".
如果将属性设置为,则设置此属性将不起作用 IsMapEnabled false 。Setting this property will have no effect if the IsMapEnabled property is set to false. 默认值为 true。Its default value is true.
重要
若要以这种方式创建图像映射,则 RenderType 对象的属性 Chart 必须设置为 ImageTag 。To create an image map in this manner, the RenderType property of the Chart object must be set to ImageTag. 使用二进制流式处理时,可以创建图像映射,但必须使用另一种方法。It is possible to create an image map when using binary streaming, but another technique must be used.
设置此属性时,可以使用特殊关键字;每个关键字都将替换为适用的图表元素中的某些类型的数据。Special keywords may be used when setting this property; each keyword will be replaced with some type of data from the applicable chart element. 有关所有可用关键字的列表,请参阅下表:Refer to the following table for a listing of all available keywords:
| 关键字Keyword | 替换者Replaced by |
|---|---|
| #VALX#VALX | 数据点的 X 值。X-value of the data point. |
| #VAL,#VALY,#VALY2,#VALY3 .。。#VAL, #VALY, #VALY2, #VALY3… | 数据点的 Y 值。Y-values of the data point. |
| #SER#SER | 序列名称。Series name. |
| #LABEL#LABEL | 数据点标签。Data point label. |
| #INDEX#INDEX | 数据点索引。Data point index. |
| #PERCENT#PERCENT | 数据点 Y 值的百分比。Percentage of the data point Y-value. |
| #TOTAL#TOTAL | 序列中所有 Y 值的总计。Total of all Y-values in the series. |
| #LEGENDTEXT#LEGENDTEXT | 图例文本。Legend text. |
若要创建具有用户定义坐标的图像映射,请使用 MapAreas 根对象的属性 Chart 。To create image maps that have user-defined coordinates, use the MapAreas property of the root Chart object.