Table of Contents

Class OdfPackageValidator

Namespace
OdfKit.Compliance
Assembly
OdfKit.dll

Provides the OdfPackageValidator API. 在完整結構描述驗證可用之前,執行套件層級的 ODF 驗證。

public static class OdfPackageValidator
Inheritance
OdfPackageValidator
Inherited Members

Methods

Validate(OdfPackage)

Validates an ODF package with default options. 以預設選項驗證 ODF 套件。

public static OdfValidationReport Validate(OdfPackage package)

Parameters

package OdfPackage

The ODF package. / ODF 套件。

Returns

OdfValidationReport

The validation report. / 驗證結果報告。

Validate(OdfPackage, OdfComplianceProfile?)

Validates an ODF package with a compliance profile. 以相容性設定檔驗證 ODF 套件。

public static OdfValidationReport Validate(OdfPackage package, OdfComplianceProfile? profile)

Parameters

package OdfPackage

The ODF package. / ODF 套件。

profile OdfComplianceProfile

The compliance profile. / 相容性設定檔。

Returns

OdfValidationReport

The validation report. / 驗證結果報告。

Validate(OdfPackage, OdfValidationOptions)

Validates an ODF package using an options object. 以 options 物件驗證 ODF 套件。

public static OdfValidationReport Validate(OdfPackage package, OdfValidationOptions options)

Parameters

package OdfPackage

The ODF package. / ODF 套件。

options OdfValidationOptions

The validation options. / 驗證選項。

Returns

OdfValidationReport

The validation report. / 驗證結果報告。