Represents a map tool button.


Namespace: AspMap.Web
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Class MapToolButton
    Inherits Image
C#
public class MapToolButton : Image
C++
ref class MapToolButton : Image
J#
public class MapToolButton extends Image
JScript
public class MapToolButton extends Image

Remarks

A MapToolButton is associated with a Map control. Developers should associate a Map control with a MapToolButton by setting it's Map property.

Set the MapTool property of the MapToolButton control to an appropriate map tool.

The runtime behavior of the MapToolButton is simple. There are two border styles associated with a MapToolButton. The BorderStyle property represents the border of the MapToolButton when it is not selected and the SelectedBorderStyle property represents the border of the MapToolButton when it is selected. Initially the MapToolButton appears unselected, but when users click on it, it becomes selected. Then, the current tool of the Map control that the MapToolButton is pointing to becomes active and the appropriate operation on the Map control can be done.

Alternatively, the SelectedImageUrl property can be set to an image that represents the button in its selected state, while The ImageUrl property will represent the normal state of the button (the BorderStyle and SelectedBorderStyle properties should be set to None in that case).

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         System.Web.UI.WebControls.Image
            AspMap.Web.MapToolButton

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also