Skip to content

LayersDrawingEventArgs

Namespace: ThinkGeo.Core

This is the event arguments class for the LayersDrawing event on the MapEngine class. It is raised before any of the layers are drawn.

public class LayersDrawingEventArgs : System.EventArgs

Inheritance ObjectEventArgsLayersDrawingEventArgs

Remarks:

This is the event arguments class for the LayersDrawing event on the MapEngine class. It is raised before any of the layers are 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 all of the layers from drawing.

public bool Cancel { get; set; }

Property Value

Boolean
This property gets the value that indicates you want to cancel all of the layers from drawing.

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

Layers

This property gets and sets the layers you will be drawing.

public IEnumerable<Layer> Layers { get; set; }

Property Value

IEnumerable<Layer>
This property gets the layers you will be drawing.

Remarks:

None

Constructors

LayersDrawingEventArgs()

This is a constructor for the class.

public LayersDrawingEventArgs()

Remarks:

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

LayersDrawingEventArgs(IEnumerable<Layer>, RectangleShape, Object)

This is a constructor for the class.

public LayersDrawingEventArgs(IEnumerable<Layer> layers, RectangleShape worldExtent, object nativeImage)

Parameters

layers IEnumerable<Layer>
This parameter is the layers that will be drawn.

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

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

Remarks:

None