Skip to main content
All docs
V26.1
  • RichEditDocumentServer.SecurityLoadingLimitExceeded Event

    Occurs when the loaded document exceeds the loading limits set by the RichEditDocumentServer.Options.SecurityLoadingLimits property.

    Namespace: DevExpress.XtraRichEdit

    Assembly: DevExpress.RichEdit.v26.1.Core.dll

    Declaration

    public event EventHandler<SecurityLoadingLimitExceededEventArgs> SecurityLoadingLimitExceeded

    Event Data

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

    Property Description
    Handled Gets or sets whether the event is handled.
    PropertyName Returns the name of the property whose value exceeded the loading limits in the loaded document.

    Example

    How to: Handle the SecurityLoadingLimitExceeded Event

    The following code snippet handles the SecurityLoadingLimitExceeded event:

    using DevExpress.XtraRichEdit;
    
    var wordProcessor = new RichEditDocumentServer();
    
    wordProcessor.SecurityLoadingLimitExceeded += (sender, e) => {
        Console.WriteLine($"Limit exceeded: {e.PropertyName}");
        e.Handled = false; // abort loading
    };
    
    See Also