Gets or sets a boolean value that indicates if a MapArea object is a custom map area that has a user-defined shape and coordinates.
Indicates that map area is custom.
Visual Basic (Declaration) | |
---|---|
Public Property Custom As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool Custom {get; set;} |
Return Value
If true the MapArea object is a custom object, if false it is a MapArea object that was automatically created for a chart element (e.g. a data point, etc.).
The following sample loops through all MapArea objects in the Page_Load event. If the map area is a custom area then we set the tooltip, overriding the previous tooltip value (if any).
Visual Basic | Copy Code |
---|---|
Imports Dundas.Charting.WebControl |
There are two types of MapArea objects stored in the map areas collection:
-
Map areas that are automatically created when an applicable chart element (e.g. data point, series, legend item or stripline object) has a non-empty ToolTip, Href or MapAreaAttributes property (note that other html elements necessary for a client-side image map are also created). In this case the dimensions and location of a map area are automatically determined by the chart element.
-
Custom map areas that have a user-defined shape and coordinates. These custom map areas can be added at design-time using the Chart object's MapAreas property, or at run-time using the MapAreasCollection object's overloaded Add or Insert methods.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family