MapArea Constructors

Definition

Initializes a new instance of the MapArea class.

Overloads

MapArea()

Initializes a new instance of the MapArea class.

MapArea(String, GraphicsPath)

Initializes a new instance of the MapArea class with the specified URL and GraphicsPath object.

MapArea(String, RectangleF)

Initializes a new instance of the MapArea class with the specified URL and RectangleF structure.

MapArea(MapAreaShape, String, Single[])

Initializes a new instance of the MapArea class with the specified shape, URL and coordinates.

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

Initializes a new instance of the MapArea class with the specified tooltip text, URL, attributes, postback value, path and tag.

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

Initializes a new instance of the MapArea class with the specified tooltip text, URL, attributes, postback value, rectangle coordinates and tag.

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

Initializes a new instance of the MapArea class with the specified shape, tooltip text, URL, attributes, postback value, coordinates and tag.

MapArea()

Initializes a new instance of the MapArea class.

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

Remarks

This constructor can be used to create and initialize a new instance of the MapArea class.

However, an easier way to create a custom MapArea object is to use one of the overloaded Add or Insert methods of the MapAreasCollection class.

MapArea(String, GraphicsPath)

Initializes a new instance of the MapArea class with the specified URL and GraphicsPath object.

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)

Parameters

url
String

The destination URL or anchor point of the map area.

path
GraphicsPath

A GraphicsPath object that defines the shape of the map area.

MapArea(String, RectangleF)

Initializes a new instance of the MapArea class with the specified URL and RectangleF structure.

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)

Parameters

url
String

The destination URL or anchor point of the map area.

rect
RectangleF

A RectangleF structure that defines the shape of the rectangular map area.

MapArea(MapAreaShape, String, Single[])

Initializes a new instance of the MapArea class with the specified shape, URL and coordinates.

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())

Parameters

shape
MapAreaShape

The shape of the map area.

url
String

The destination URL or anchor point of the map area.

coordinates
Single[]

An array of coordinates that determine the location of the circle, rectangle or polygon. The type of shape that is being used determines the type of coordinates required.

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

Initializes a new instance of the MapArea class with the specified tooltip text, URL, attributes, postback value, path and tag.

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)

Parameters

toolTip
String

The tool tip for the map area.

url
String

The destination URL or anchor point of the map area.

attributes
String

The attributes for the map area.

postBackValue
String

The postback value which can be processed on a Click event.

path
GraphicsPath

The area coordinates of a map area as graphic path.

tag
Object

The tag to indicate whether the map area is custom.

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

Initializes a new instance of the MapArea class with the specified tooltip text, URL, attributes, postback value, rectangle coordinates and tag.

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)

Parameters

toolTip
String

The tool tip for the map area.

url
String

The destination URL or anchor point of the map area.

attributes
String

The attributes for the map area.

postBackValue
String

The postback value which can be processed on a Click event.

rect
RectangleF

The coordinates of a MapArea object.

tag
Object

The tag to indicate whether the map area is custom.

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

Initializes a new instance of the MapArea class with the specified shape, tooltip text, URL, attributes, postback value, coordinates and tag.

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)

Parameters

shape
MapAreaShape

The shape of the map area.

toolTip
String

The tool tip for the map area.

url
String

The destination URL or anchor point of the map area.

attributes
String

The attributes for the map area.

postBackValue
String

The postback value which can be processed on a Click event.

coordinates
Single[]

An array of coordinates that determine the location of the circle, rectangle or polygon. The type of shape that is being used determines the type of coordinates required.

tag
Object

The tag to indicate whether the map area is custom.

Applies to