MapArea 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 MapArea 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| MapArea() |
初始化 MapArea 類別的新執行個體。 |
| MapArea(String, GraphicsPath) |
初始化一個新的類別實例 MapArea ,並使用指定的 URL 與 GraphicsPath 物件。 |
| MapArea(String, RectangleF) |
初始化一個新的類別實例 MapArea ,使用指定的 URL 和 RectangleF 結構。 |
| MapArea(MapAreaShape, String, Single[]) |
初始化一個新的類別實例 MapArea ,包含指定的形狀、URL 與座標。 |
| MapArea(String, String, String, String, GraphicsPath, Object) |
初始化一個新的類別實例 MapArea ,包含指定的提示文字、URL、屬性、postback 值、路徑與標籤。 |
| MapArea(String, String, String, String, RectangleF, Object) |
初始化該類別的新實例 MapArea ,包含指定的提示文字、URL、屬性、postback 值、矩形座標及標籤。 |
| MapArea(MapAreaShape, String, String, String, String, Single[], Object) |
初始化一個新的類別實例 MapArea ,包含指定的形狀、提示文字、URL、屬性、回貼值、座標及標籤。 |
MapArea()
初始化 MapArea 類別的新執行個體。
public:
MapArea();
public MapArea();
Public Sub New ()
備註
此建構子可用來建立並初始化該類別的新實例 MapArea 。
不過,建立自訂MapArea物件的簡單方法是使用類別中Add過InsertMapAreasCollection載的方法之一。
適用於
MapArea(String, GraphicsPath)
初始化一個新的類別實例 MapArea ,並使用指定的 URL 與 GraphicsPath 物件。
public:
MapArea(System::String ^ url, System::Drawing::Drawing2D::GraphicsPath ^ path);
public MapArea(string url, System.Drawing.Drawing2D.GraphicsPath path);
new System.Web.UI.DataVisualization.Charting.MapArea : string * System.Drawing.Drawing2D.GraphicsPath -> System.Web.UI.DataVisualization.Charting.MapArea
Public Sub New (url As String, path As GraphicsPath)
參數
- url
- String
地圖區域的目的地網址或錨點。
- path
- GraphicsPath
一個 GraphicsPath 定義地圖區域形狀的物件。
適用於
MapArea(String, RectangleF)
初始化一個新的類別實例 MapArea ,使用指定的 URL 和 RectangleF 結構。
public:
MapArea(System::String ^ url, System::Drawing::RectangleF rect);
public MapArea(string url, System.Drawing.RectangleF rect);
new System.Web.UI.DataVisualization.Charting.MapArea : string * System.Drawing.RectangleF -> System.Web.UI.DataVisualization.Charting.MapArea
Public Sub New (url As String, rect As RectangleF)
參數
- url
- String
地圖區域的目的地網址或錨點。
- rect
- RectangleF
定義 RectangleF 矩形地圖區域形狀的結構。
適用於
MapArea(MapAreaShape, String, Single[])
初始化一個新的類別實例 MapArea ,包含指定的形狀、URL 與座標。
public:
MapArea(System::Web::UI::DataVisualization::Charting::MapAreaShape shape, System::String ^ url, cli::array <float> ^ coordinates);
public MapArea(System.Web.UI.DataVisualization.Charting.MapAreaShape shape, string url, float[] coordinates);
new System.Web.UI.DataVisualization.Charting.MapArea : System.Web.UI.DataVisualization.Charting.MapAreaShape * string * single[] -> System.Web.UI.DataVisualization.Charting.MapArea
Public Sub New (shape As MapAreaShape, url As String, coordinates As Single())
參數
- shape
- MapAreaShape
地圖區域的形狀。
- url
- String
地圖區域的目的地網址或錨點。
- coordinates
- Single[]
一組座標陣列,用來決定圓、矩形或多邊形的位置。 所使用的形狀類型決定了所需的座標類型。
適用於
MapArea(String, String, String, String, GraphicsPath, Object)
初始化一個新的類別實例 MapArea ,包含指定的提示文字、URL、屬性、postback 值、路徑與標籤。
public:
MapArea(System::String ^ toolTip, System::String ^ url, System::String ^ attributes, System::String ^ postBackValue, System::Drawing::Drawing2D::GraphicsPath ^ path, System::Object ^ tag);
public MapArea(string toolTip, string url, string attributes, string postBackValue, System.Drawing.Drawing2D.GraphicsPath path, object tag);
new System.Web.UI.DataVisualization.Charting.MapArea : string * string * string * string * System.Drawing.Drawing2D.GraphicsPath * obj -> System.Web.UI.DataVisualization.Charting.MapArea
Public Sub New (toolTip As String, url As String, attributes As String, postBackValue As String, path As GraphicsPath, tag As Object)
參數
- toolTip
- String
地圖區域的工具提示。
- url
- String
地圖區域的目的地網址或錨點。
- attributes
- String
地圖區域的屬性。
- path
- GraphicsPath
地圖區域的座標作為圖形路徑。
- tag
- Object
標籤用來表示該地圖區域是否自訂。
適用於
MapArea(String, String, String, String, RectangleF, Object)
初始化該類別的新實例 MapArea ,包含指定的提示文字、URL、屬性、postback 值、矩形座標及標籤。
public:
MapArea(System::String ^ toolTip, System::String ^ url, System::String ^ attributes, System::String ^ postBackValue, System::Drawing::RectangleF rect, System::Object ^ tag);
public MapArea(string toolTip, string url, string attributes, string postBackValue, System.Drawing.RectangleF rect, object tag);
new System.Web.UI.DataVisualization.Charting.MapArea : string * string * string * string * System.Drawing.RectangleF * obj -> System.Web.UI.DataVisualization.Charting.MapArea
Public Sub New (toolTip As String, url As String, attributes As String, postBackValue As String, rect As RectangleF, tag As Object)
參數
- toolTip
- String
地圖區域的工具提示。
- url
- String
地圖區域的目的地網址或錨點。
- attributes
- String
地圖區域的屬性。
- rect
- RectangleF
物體的 MapArea 座標。
- tag
- Object
標籤用來表示該地圖區域是否自訂。
適用於
MapArea(MapAreaShape, String, String, String, String, Single[], Object)
初始化一個新的類別實例 MapArea ,包含指定的形狀、提示文字、URL、屬性、回貼值、座標及標籤。
public:
MapArea(System::Web::UI::DataVisualization::Charting::MapAreaShape shape, System::String ^ toolTip, System::String ^ url, System::String ^ attributes, System::String ^ postBackValue, cli::array <float> ^ coordinates, System::Object ^ tag);
public MapArea(System.Web.UI.DataVisualization.Charting.MapAreaShape shape, string toolTip, string url, string attributes, string postBackValue, float[] coordinates, object tag);
new System.Web.UI.DataVisualization.Charting.MapArea : System.Web.UI.DataVisualization.Charting.MapAreaShape * string * string * string * string * single[] * obj -> System.Web.UI.DataVisualization.Charting.MapArea
Public Sub New (shape As MapAreaShape, toolTip As String, url As String, attributes As String, postBackValue As String, coordinates As Single(), tag As Object)
參數
- shape
- MapAreaShape
地圖區域的形狀。
- toolTip
- String
地圖區域的工具提示。
- url
- String
地圖區域的目的地網址或錨點。
- attributes
- String
地圖區域的屬性。
- coordinates
- Single[]
一組座標陣列,用來決定圓、矩形或多邊形的位置。 所使用的形狀類型決定了所需的座標類型。
- tag
- Object
標籤用來表示該地圖區域是否自訂。