Skip to main content
A newer version of this page is available. .

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.v19.1.dll

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