Title.MapAreaAttributes 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定標題的地圖區域屬性。
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 代表標題地圖區域屬性的值。 預設值為零長度字串。
實作
- 屬性
備註
如果你設定了屬性 MapAreaAttributes ,客戶端的影像映射會自動產生。 同時也會建立一個地圖區域,其屬性字串會附加在 <對應於該屬性設定的圖表物件的 MAP> 標籤上。
由於整個屬性字串會附加在 <MAP> 標籤上,因此多個屬性應該以空格分隔。
此 MapAreaAttributes 屬性可與該屬性結合 Url 使用,以指定地圖區域屬性,例如 Target= _Blank,以及用戶端事件處理程序,例如 OnClick=“MyEvent()”。
若 IsMapEnabled 設定此屬性為 false,則不會影響該屬性。 預設值為 true。
這很重要
要以此方式建立影像映射, RenderType 物件的 Chart 屬性必須設定為 ImageTag。 使用二進位串流時可以建立影像映射,但必須使用另一種技術。
設定此屬性時可使用特殊關鍵字;每個關鍵字都會被該圖表元素中的某種資料取代。 請參閱以下表格,列出所有可用關鍵字:
| Keyword | 被替換為 |
|---|---|
| #VALX | 資料點的 X 值。 |
| #VAL、#VALY、#VALY2、#VALY3...... | 資料點的 y 值。 |
| #SER | 數列名稱。 |
| #LABEL | 資料點標籤。 |
| #INDEX | 資料點索引。 |
| #PERCENT | 資料點Y值的百分比。 |
| #TOTAL | 該級數中所有 Y 值的總和。 |
| #LEGENDTEXT | 圖例文字。 |
要建立具有使用者定義座標的影像映射,請使用 MapAreas 根 Chart 物件的屬性。