DrawingLayerOverlayEventArgs¶
Namespace: ThinkGeo.UI.WebApi
Provides data for the LayerOverlay.DrawingLayer event, exposing the target canvas, layer, and cancellation flag.
public class DrawingLayerOverlayEventArgs : System.EventArgs
Inheritance object → EventArgs → DrawingLayerOverlayEventArgs
Properties¶
Cancel¶
Gets or sets a value indicating whether the current layer draw should be skipped.
public bool Cancel { get; set; }
Property Value¶
bool
true to cancel the operation; otherwise, false.
GeoCanvas¶
Gets or sets the canvas that the layer will render onto. Assigning null throws an ArgumentNullException.
public GeoCanvas GeoCanvas { get; set; }
Property Value¶
GeoCanvas
The non-null canvas associated with the event.
DrawingLayer¶
Gets or sets the layer that is about to be drawn - a Layer or an AsyncLayer. This may be null when the event is raised without a concrete layer.
public LayerBase DrawingLayer { get; set; }
Property Value¶
LayerBase
The layer associated with the event, or null if not specified.
Constructors¶
DrawingLayerOverlayEventArgs()¶
Creates an event argument instance with no pre-assigned canvas or layer.
public DrawingLayerOverlayEventArgs()
DrawingLayerOverlayEventArgs(GeoCanvas, LayerBase)¶
Creates an event argument instance that targets the supplied canvas and layer, defaulting cancellation to false.
public DrawingLayerOverlayEventArgs(GeoCanvas geoCanvas, LayerBase drawingLayer)
Parameters¶
geoCanvas GeoCanvas
Canvas that will be used for drawing.
drawingLayer LayerBase
Layer that is about to be drawn.
DrawingLayerOverlayEventArgs(GeoCanvas, LayerBase, bool)¶
Creates an event argument instance that targets the supplied canvas and layer and specifies whether drawing should continue.
public DrawingLayerOverlayEventArgs(GeoCanvas geoCanvas, LayerBase drawingLayer, bool cancel)
Parameters¶
geoCanvas GeoCanvas
Canvas that will be used for drawing.
drawingLayer LayerBase
Layer that is about to be drawn.
cancel bool
true to cancel the draw operation; otherwise, false.