MapArea 构造函数

定义

初始化 MapArea 类的新实例。

重载

名称 说明
MapArea()

初始化 MapArea 类的新实例。

MapArea(String, GraphicsPath)

使用指定的 URL 和MapArea对象初始化类的新实例GraphicsPath

MapArea(String, RectangleF)

使用指定的 URL 和MapArea结构初始化类的新实例RectangleF

MapArea(MapAreaShape, String, Single[])

使用指定的形状、URL 和坐标初始化类的新实例 MapArea

MapArea(String, String, String, String, GraphicsPath, Object)

使用指定的工具提示文本、URL、属性、回发值、路径和标记初始化类的新实例 MapArea

MapArea(String, String, String, String, RectangleF, Object)

使用指定的工具提示文本、URL、属性、回发值、矩形坐标和标记初始化类的新实例 MapArea

MapArea(MapAreaShape, String, String, String, String, Single[], Object)

使用指定的形状、工具提示文本、URL、属性、回发值、坐标和标记初始化类的新实例 MapArea

MapArea()

初始化 MapArea 类的新实例。

public:
 MapArea();
public MapArea();
Public Sub New ()

注解

此构造函数可用于创建和初始化类的新实例 MapArea

但是,创建自定义 MapArea 对象的更简单方法是使用其中一个重载 AddInsert 类的方法 MapAreasCollection

适用于

MapArea(String, GraphicsPath)

使用指定的 URL 和MapArea对象初始化类的新实例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

地图区域的目标 URL 或定位点。

path
GraphicsPath

定义 GraphicsPath 地图区域形状的对象。

适用于

MapArea(String, RectangleF)

使用指定的 URL 和MapArea结构初始化类的新实例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

地图区域的目标 URL 或定位点。

rect
RectangleF

定义 RectangleF 矩形地图区域形状的结构。

适用于

MapArea(MapAreaShape, String, Single[])

使用指定的形状、URL 和坐标初始化类的新实例 MapArea

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

地图区域的目标 URL 或定位点。

coordinates
Single[]

确定圆、矩形或多边形位置的坐标数组。 正在使用的形状类型决定了所需的坐标类型。

适用于

MapArea(String, String, String, String, GraphicsPath, Object)

使用指定的工具提示文本、URL、属性、回发值、路径和标记初始化类的新实例 MapArea

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

地图区域的目标 URL 或定位点。

attributes
String

地图区域的属性。

postBackValue
String

可以在事件上 Click 处理的回发值。

path
GraphicsPath

地图区域的面积坐标作为图形路径。

tag
Object

用于指示地图区域是否为自定义的标记。

适用于

MapArea(String, String, String, String, RectangleF, Object)

使用指定的工具提示文本、URL、属性、回发值、矩形坐标和标记初始化类的新实例 MapArea

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

地图区域的目标 URL 或定位点。

attributes
String

地图区域的属性。

postBackValue
String

可以在事件上 Click 处理的回发值。

rect
RectangleF

对象的坐标 MapArea

tag
Object

用于指示地图区域是否为自定义的标记。

适用于

MapArea(MapAreaShape, String, String, String, String, Single[], Object)

使用指定的形状、工具提示文本、URL、属性、回发值、坐标和标记初始化类的新实例 MapArea

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

地图区域的目标 URL 或定位点。

attributes
String

地图区域的属性。

postBackValue
String

可以在事件上 Click 处理的回发值。

coordinates
Single[]

确定圆、矩形或多边形位置的坐标数组。 正在使用的形状类型决定了所需的坐标类型。

tag
Object

用于指示地图区域是否为自定义的标记。

适用于