OpenXmlValidator Constructor (FileFormatVersions)
Initializes a new instance of the OpenXmlValidator.
Namespace: DocumentFormat.OpenXml.Validation
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Sub New ( _
fileFormat As FileFormatVersions _
)
'Usage
Dim fileFormat As FileFormatVersions
Dim instance As New OpenXmlValidator(fileFormat)
public OpenXmlValidator(
FileFormatVersions fileFormat
)
Parameters
- fileFormat
Type: DocumentFormat.OpenXml.FileFormatVersions
The target filr format to be validated aginst.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the "fileFormat" parameter is not FileFormat.Office2007 or FileFormat.Office2010. |