Skip to main content

SpreadsheetImportOptions.ThrowExceptionOnInvalidDocument Property

Specifies whether an exception should be thrown when importing an invalid workbook. This is a dependency property.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v24.2.dll

NuGet Package: DevExpress.Wpf.Spreadsheet

Declaration

public bool ThrowExceptionOnInvalidDocument { get; set; }

Property Value

Type Description
Boolean

true, if an exception is thrown when importing an invalid document; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ThrowExceptionOnInvalidDocument
SpreadsheetControlOptions
.Import .ThrowExceptionOnInvalidDocument

Remarks

The SpreadsheetControl.InvalidFormatException can be thrown if the ThrowExceptionOnInvalidDocument is true.

See Also