Share via


OpenXmlValidator Class

Definition

Defines the OpenXmlValidator.

public class OpenXmlValidator
type OpenXmlValidator = class
Public Class OpenXmlValidator
Inheritance
OpenXmlValidator

Constructors

OpenXmlValidator()

Initializes a new instance of the OpenXmlValidator.

OpenXmlValidator(FileFormatVersions)

Initializes a new instance of the OpenXmlValidator.

Properties

FileFormat

Gets the target file format to be validated against.

MaxNumberOfErrors

Gets or sets the maximum number of errors the OpenXmlValidator will return. Default is 1000. A 0 value means no limitation.

Methods

Validate(OpenXmlElement, CancellationToken)

Validates the specified element.

Validate(OpenXmlElement)

Validates the specified element.

Validate(OpenXmlPackage, CancellationToken)

Validates the specified document.

Validate(OpenXmlPackage)

Validates the specified document.

Validate(OpenXmlPart, CancellationToken)

Validates the specified content in the openXmlPart.

Validate(OpenXmlPart)

Validates the specified content in the openXmlPart.

Applies to