Back to Devexpress

RichEditControl.InvalidFormatException Event

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-b558e71c.md

latest2.0 KB
Original Source

RichEditControl.InvalidFormatException Event

Fires when the supplied data could not be recognized as data in the assumed format for import.

Namespace : DevExpress.Xpf.RichEdit

Assembly : DevExpress.Xpf.RichEdit.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public event RichEditInvalidFormatExceptionEventHandler InvalidFormatException
vb
Public Event InvalidFormatException As RichEditInvalidFormatExceptionEventHandler

Event Data

The InvalidFormatException event's data class is RichEditInvalidFormatExceptionEventArgs. The following properties provide information specific to this event:

PropertyDescription
ExceptionGets the exception which triggers the InvalidFormatException event.

Remarks

The Data format can be specified explicitly or deduced from the file extension. When a proper importer is created, it performs a data check and raises the InvalidFormatException event if it fails.

You can handle the event and perform required actions (inform the end-user) or leave it as is. The event is handled automatically, so no data will be imported and the exception will not propagated further.

See Also

UnhandledException

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace