Skip to main content
All docs
V26.1
  • Row

    Workbook.SecurityLoadingLimitExceeded Event

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

    Namespace: DevExpress.Spreadsheet

    Assembly: DevExpress.Docs.v26.1.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.Spreadsheet;
    
    Workbook workbook = new Workbook();
    workbook.SecurityLoadingLimitExceeded += (sender, e) => {
        Console.WriteLine($"Limit exceeded: {e.PropertyName}");
        e.Handled = false; // abort loading
    };
    
    See Also