Skip to content

DrawingExceptionLayerEventArgs

Namespace: ThinkGeo.Core

Provides data for the LayerBase.DrawingException event, which fires when a layer throws during drawing.

public class DrawingExceptionLayerEventArgs : System.EventArgs

Inheritance objectEventArgsDrawingExceptionLayerEventArgs

Remarks:

Inspect the DrawingExceptionLayerEventArgs.Exception for diagnostic details, review the drawing DrawingExceptionLayerEventArgs.Canvas, or set DrawingExceptionLayerEventArgs.Cancel to stop further processing.

Properties

Exception

Gets or sets the exception that was thrown during drawing.

public Exception Exception { get; set; }

Property Value

Exception

Canvas

Gets or sets the GeoCanvas that was being used when the exception was raised.

public GeoCanvas Canvas { get; set; }

Property Value

GeoCanvas

Cancel

Gets or sets a value indicating whether drawing should be canceled.

public bool Cancel { get; set; }

Property Value

bool
true to cancel the remaining drawing operations; otherwise, false.

Constructors

DrawingExceptionLayerEventArgs()

Initializes a new instance of the DrawingExceptionLayerEventArgs class.

public DrawingExceptionLayerEventArgs()

DrawingExceptionLayerEventArgs(GeoCanvas, Exception, bool)

Initializes a new instance of the DrawingExceptionLayerEventArgs class with the specified values.

public DrawingExceptionLayerEventArgs(GeoCanvas canvas, Exception exception, bool cancel)

Parameters

canvas GeoCanvas
The being drawn when the exception occurred.

exception Exception
The exception that was thrown.

cancel bool
A value indicating whether drawing should be canceled.