Skip to content

DrawnExceptionLayerEventArgs

Namespace: ThinkGeo.Core

Provides data for the LayerBase.DrawnException event, which is raised when a layer throws after drawing.

public class DrawnExceptionLayerEventArgs : System.EventArgs

Inheritance objectEventArgsDrawnExceptionLayerEventArgs

Remarks:

Access the DrawnExceptionLayerEventArgs.Exception instance for diagnostic details and the DrawnExceptionLayerEventArgs.Canvas for the drawing surface state at the time of failure.

Properties

Exception

Gets or sets the exception that was thrown while drawing the layer.

public Exception Exception { get; set; }

Property Value

Exception

Canvas

Gets or sets the GeoCanvas that was in use when the exception was raised.

public GeoCanvas Canvas { get; set; }

Property Value

GeoCanvas

Constructors

DrawnExceptionLayerEventArgs()

Initializes a new instance of the DrawnExceptionLayerEventArgs class.

public DrawnExceptionLayerEventArgs()

DrawnExceptionLayerEventArgs(GeoCanvas, Exception)

Initializes a new instance of the DrawnExceptionLayerEventArgs class with the provided canvas and exception.

public DrawnExceptionLayerEventArgs(GeoCanvas canvas, Exception exception)

Parameters

canvas GeoCanvas
The that was drawing when the exception occurred.

exception Exception
The exception that was thrown.