LayerDrawingEventArgs¶
Namespace: ThinkGeo.Core
Provides data for the MapEngine.LayerDrawing event, which fires before an individual layer draws.
public class LayerDrawingEventArgs : System.EventArgs
Inheritance Object → EventArgs → LayerDrawingEventArgs
Remarks:
Handle this event to cancel drawing, modify the layer, or perform custom drawing on the map image before the layer renders.
Properties¶
Cancel¶
Gets or sets a value indicating whether the current layer should be prevented from drawing.
public bool Cancel { get; set; }
Property Value¶
Boolean
true to cancel the draw operation; otherwise, false.
CurrentLayer¶
Gets or sets the layer that is about to draw.
public Layer CurrentLayer { get; set; }
Property Value¶
WorldExtent¶
Gets or sets the world extent that represents the current map view.
public RectangleShape WorldExtent { get; set; }
Property Value¶
NativeImage¶
Gets or sets the native image handle or drawing surface used for rendering.
public object NativeImage { get; set; }
Property Value¶
Constructors¶
LayerDrawingEventArgs()¶
Initializes a new instance of the LayerDrawingEventArgs class.
public LayerDrawingEventArgs()
Remarks:
When this constructor is used, set the LayerDrawingEventArgs.CurrentLayer, LayerDrawingEventArgs.WorldExtent, and LayerDrawingEventArgs.NativeImage properties manually.
LayerDrawingEventArgs(Layer, RectangleShape, Object)¶
Initializes a new instance of the LayerDrawingEventArgs class with the specified drawing information.
public LayerDrawingEventArgs(Layer currentLayer, RectangleShape worldExtent, object nativeImage)
Parameters¶
currentLayer Layer
The layer that is about to be drawn.
worldExtent RectangleShape
The world extent for the current map view.
nativeImage Object
The native image handle or drawing surface that the layer renders onto.