ESRI.ArcGIS.ADF.Web.UI.WebControls
RectangleEventArgs Class
Members  See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : RectangleEventArgs Class




Event arguments for a Tool when its ClientAction is set to Rectangle.

Object Model


Syntax

Visual Basic (Declaration) 
Public Class RectangleEventArgs 
   Inherits ToolEventArgs
Visual Basic (Usage)Copy Code
Dim instance As RectangleEventArgs
C# 
public class RectangleEventArgs : ToolEventArgs 

Remarks

An instance of this class is created when a Tool has its ClientAction set to Rectangle, the user clicks on the Map or PageLayout, and the Tool's ServerActionClass is set to a class that implements IMapServerToolAction. The RectangleEventArgs object is passed as the argument to the ServerAction method.

The RectangleEventArgs will contain the System.Drawing.Rectangle where the user clicked. This rectangle may be used to do action on the server, such as querying the map or zooming the map. Note the coordinates of the rectangle are in screen pixels, and may need to be converted to map coordinates before using the rectangle.

Inheritance Hierarchy

System.Object
   System.EventArgs
      ESRI.ArcGIS.ADF.Web.UI.WebControls.ToolEventArgs
         ESRI.ArcGIS.ADF.Web.UI.WebControls.RectangleEventArgs
            ESRI.ArcGIS.ADF.Web.UI.WebControls.MapRectangleEventArgs

See Also

© 2010 All Rights Reserved.