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.v20.2.dll

Declaration

public bool ThrowExceptionOnInvalidDocument { get; set; }
Public Property ThrowExceptionOnInvalidDocument As Boolean

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
SpreadsheetControl
.Options.Import.ThrowExceptionOnInvalidDocument
SpreadsheetControlOptions
.Import.ThrowExceptionOnInvalidDocument

Remarks

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

See Also