Share via


MapArea.Coordinates 屬性

定義

取得或設定 MapArea 物件的座標。

public:
 property cli::array <float> ^ Coordinates { cli::array <float> ^ get(); void set(cli::array <float> ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.MapAreaCoordinatesConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public float[] Coordinates { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.MapAreaCoordinatesConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.Coordinates : single[] with get, set
Public Property Coordinates As Single()

屬性值

Single[]

座標陣列,相依於對應區域的圖形。

屬性

備註

屬性 Coordinates 通常用來設定具有使用者定義圖形和座標之自訂地圖區域物件的座標。

自訂地圖區域必須指定的座標取決於地圖區域的圖形:

  • 圈。 必須提供三個座標:「x1、y1、r」,其中 「x1, y2」 是圓形中央的座標,而 「r」 是圓形的半徑。

  • 矩形。 必須提供四個座標:「x1、y1、x2、y2」,其中 「x1, y1」 是矩形左上角的座標,而 「x2, y2」 是矩形右下角的座標。

  • 多邊形。 必須提供兩個以上的 x 和 y 配對 「x1, y1, x2, y2...xn, yn,其中每個 「x, y」 組包含多邊形一個頂點的座標。

設定座標時,請使用圖表的相對座標系統,其中圖表影像的左上角是 「0,0」,而影像的右下角是 「100,100」。

定義地圖區域的圖形和座標之後, ToolTip 就可以使用 和 Url /或 MapAreaAttributes 屬性來指定特定的使用者互動。

請注意:

  • 只有在 IsMapEnabledChart 物件的 屬性為 true 時,才會在執行時間建立用戶端影像對應,這是預設值。

  • 若要藉由將 物件新增 MapArea 至地圖區域集合來建立影像地圖, RenderType 物件的 屬性 Chart 必須設定為 ImageTag 。 使用二進位串流時,可以建立影像地圖,但必須使用特殊技術。

適用於