Skip to content

LayerDrawingEventArgs

Namespace: ThinkGeo.Core

This is the event arguments class for the LayerDrawing event on the MapEngine class. It is raised before the layer is drawn.

public class LayerDrawingEventArgs : System.EventArgs

Inheritance ObjectEventArgsLayerDrawingEventArgs

Remarks:

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

Properties

Cancel

This property gets and sets the value that indicates you want to cancel the layer from drawing.

public bool Cancel { get; set; }

Property Value

Boolean
This property gets the value that indicates you want to cancel the layer from drawing.

Remarks:

None

CurrentLayer

This property gets and sets current layer that will be drawn.

public Layer CurrentLayer { get; set; }

Property Value

Layer
This property gets current layer that will be drawn.

Remarks:

None

WorldExtent

This property gets and sets the world extent that will be drawn.

public RectangleShape WorldExtent { get; set; }

Property Value

RectangleShape
This property gets the world extent that will be drawn.

Remarks:

None

NativeImage

This property gets and sets the NativeImage or native image that we are drawing on.

public object NativeImage { get; set; }

Property Value

Object
This property gets the NativeImage or native image that we are drawing on.

Remarks:

None

Constructors

LayerDrawingEventArgs()

This is a constructor for the class.

public LayerDrawingEventArgs()

Remarks:

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

LayerDrawingEventArgs(Layer, RectangleShape, Object)

This is a constructor for the class.

public LayerDrawingEventArgs(Layer currentLayer, RectangleShape worldExtent, object nativeImage)

Parameters

currentLayer Layer
This parameter is the layer you will be drawing.

worldExtent RectangleShape
This parameter is the world extent you are drawing.

nativeImage Object
This parameter is the NativeImage or native map image.

Remarks:

None