Class OdfSchemaRegistry
- Namespace
- OdfKit.Compliance
- Assembly
- OdfKit.dll
Provides the OdfSchemaRegistry API. 提供驗證器與具類型 DOM 層所使用的版本化 ODF 結構描述中繼資料。
public static class OdfSchemaRegistry
- Inheritance
-
OdfSchemaRegistry
- Inherited Members
Properties
Latest
Performs latest. 取得此程式庫中可用的最新 ODF 結構描述中繼資料。
public static OdfSchemaSet Latest { get; }
Property Value
Odf14
Performs odf 14. 取得 ODF 1.4 結構描述中繼資料種子。
public static OdfSchemaSet Odf14 { get; }
Property Value
Methods
GetSchema(OdfVersion)
Gets schema. 取得指定版本的結構描述中繼資料。
public static OdfSchemaSet GetSchema(OdfVersion version)
Parameters
versionOdfVersionODF 版本
Returns
- OdfSchemaSet
結構描述中繼資料集
RegisterSchema(OdfSchemaSet)
Registers a schema set with default registration options. 以預設註冊選項註冊結構描述集。
public static IDisposable RegisterSchema(OdfSchemaSet schema)
Parameters
schemaOdfSchemaSetThe schema set to register. / 要註冊的結構描述集。
Returns
- IDisposable
A disposable scope that restores the previous registration. / 釋放時還原先前註冊的範圍物件。
RegisterSchema(OdfSchemaSet, OdfSchemaRegistrationOptions)
Registers a schema set using registration options. 以註冊選項註冊結構描述集。
public static IDisposable RegisterSchema(OdfSchemaSet schema, OdfSchemaRegistrationOptions options)
Parameters
schemaOdfSchemaSetThe schema set to register. / 要註冊的結構描述集。
optionsOdfSchemaRegistrationOptionsThe registration options. / 註冊選項。
Returns
- IDisposable
A disposable scope that restores the previous registration. / 釋放時還原先前註冊的範圍物件。