Skip to content

DrawingOverlayEventArgs

Namespace: ThinkGeo.Core

This is the event arguments for the OverlayDrawing event on the MapEngine class. It is raised before the Overlay is drawn.

public class DrawingOverlayEventArgs : System.EventArgs

Inheritance ObjectEventArgsDrawingOverlayEventArgs

Remarks:

This is the event arguments for the OverlayDrawing event on the MapEngine class. It is raised before the Overlay is drawn. This event allows you to cancel, manipulate the Layer, or draw something with the canvas before the Layer draws.

Properties

WorldExtent

Gets or sets an extent to draw the overlay.

public RectangleShape WorldExtent { get; set; }

Property Value

RectangleShape

Cancel

Gets or sets a value that determines whether you want to cancel the Overlay from drawing.

public bool Cancel { get; set; }

Property Value

Boolean
This property gets a value that determines whether you want to cancel the Overlay from drawing.

Remarks:

None

Constructors

DrawingOverlayEventArgs()

Constructor of DrawingOverlayEventArgs class.

public DrawingOverlayEventArgs()

Remarks:

This is the default constructor. If you use this constructor then you need to set the required properties manually.

DrawingOverlayEventArgs(RectangleShape, Boolean)

Constructor of DrawingOverlayEventArgs class.

public DrawingOverlayEventArgs(RectangleShape worldExtent, bool cancel)

Parameters

worldExtent RectangleShape
This parameter is the extent for drawing an overlay.

cancel Boolean
This parameter indicates whether cancel current drawing process.