The event handler receives an argument of type DocumentProtectionQueryNewPasswordFormShowingEventArgs containing data related to this event.
Handle the DocumentProtectionQueryNewPasswordFormShowing event to perform any actions prior to the Document Protection dialog being shown. For example, you can substitute the standard dialog with a custom one and set the DevExpress.XtraRichEdit.ShowFormEventArgs.Handled property to true, to prevent default event handling.