DiagramControl.ExceptionMessage Event
Allows you to handle exceptions that may raise during various actions on the Diagram Control.
Namespace: DevExpress.XtraDiagram
Assembly: DevExpress.XtraDiagram.v24.2.dll
Declaration
[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramExceptionMessageEventArgs> ExceptionMessage
Event Data
The ExceptionMessage event's data class is DevExpress.XtraDiagram.DiagramExceptionMessageEventArgs.
Remarks
Exceptions may be raised when you or your end-user perform diagram loading/saving actions. By default, a message box is shown when an exception is caught. You can override this behavior with the ExceptionMessage event. For instance, you can use the MessageAction event parameter to suppress the notification or re-raise the exception.
The exception can be obtained via the event parameter’s Exception property.
See Also