Table of Contents

Class LayerDrawingEventArgs

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

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 : EventArgs
Inheritance
LayerDrawingEventArgs
Inherited Members

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.

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

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

bool

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

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

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