MapArea.Shape 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定物體的 MapArea 形狀。
public:
property System::Web::UI::DataVisualization::Charting::MapAreaShape Shape { System::Web::UI::DataVisualization::Charting::MapAreaShape get(); void set(System::Web::UI::DataVisualization::Charting::MapAreaShape value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Web.UI.DataVisualization.Charting.MapAreaShape Shape { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.Shape : System.Web.UI.DataVisualization.Charting.MapAreaShape with get, set
Public Property Shape As MapAreaShape
屬性值
一個 MapAreaShape 決定地圖區域物件形狀的枚舉值。
- 屬性
備註
此屬性通常用於設定自訂地圖區域物件的形狀,該物件擁有使用者定義的形狀與座標。
自訂地圖區域的形狀決定了必須指定的座標類型,可用的形狀包括圓形、矩形和多邊形。
在擷取儲存在 MapAreasCollection的物件形狀時,MapArea任何非矩形或非圓形的形狀都會被視為多邊形。 例如,可以使用物件作為參數,加入自訂地圖區域集合 GraphicsPath ,允許使用任何類型的形狀。 如果 Shape 取得該特定 MapArea 物件的屬性,則會回傳一個 Polygon。
在定義好地圖區域的形狀與座標後, ToolTip可以使用 和 Url /或 MapAreaAttributes 屬性來指定特定的使用者互動。
請注意下列事項:
只有當根圖物件的 IsMapEnabled 屬性為 true(預設值)時,客戶端影像地圖才會在執行時建立。
若要透過將 MapArea 物件加入地圖區域集合來建立影像地圖,圖表物件的 RenderType 屬性必須是 RenderType.ImageTag。 使用二進位串流時可以建立影像映射,但必須使用特殊技術。