Table of Contents

Class OdfFormatInfo

Namespace
OdfKit.Compliance
Assembly
OdfKit.dll

Provides the OdfFormatInfo API. 描述單一 ODF 檔案格式的副檔名、MIME 類型與文件種類。

public sealed class OdfFormatInfo
Inheritance
OdfFormatInfo
Inherited Members

Constructors

OdfFormatInfo(string, string, OdfDocumentKind, OdfDocumentKind, bool)

Provides the OdfFormatInfo API. 描述單一 ODF 檔案格式的副檔名、MIME 類型與文件種類。

public OdfFormatInfo(string extension, string mimeType, OdfDocumentKind kind, OdfDocumentKind bodyKind, bool isFlatXml)

Parameters

extension string

包含前導句點的檔案副檔名

mimeType string

ODF 封裝或扁平 XML 宣告的 MIME 類型

kind OdfDocumentKind

對應的 ODF 文件種類

bodyKind OdfDocumentKind

對應於 office:body 子元素的內容種類

isFlatXml bool

是否為單一 XML (Flat XML) 格式

Properties

BodyKind

Gets the BodyKind value. 取得對應於 office:body 子元素的內容種類。

public OdfDocumentKind BodyKind { get; }

Property Value

OdfDocumentKind

Extension

Gets the Extension value. 取得包含前導句點的檔案副檔名。

public string Extension { get; }

Property Value

string

IsFlatXml

Gets a value indicating the IsFlatXml state. 取得是否為單一 XML (Flat XML) 格式。

public bool IsFlatXml { get; }

Property Value

bool

IsMasterDocument

Returns whether this instance is master document. 取得是否為 ODF 主控文件格式。

public bool IsMasterDocument { get; }

Property Value

bool

IsTemplate

Returns whether this instance is template. 取得是否為 ODF 範本格式。

public bool IsTemplate { get; }

Property Value

bool

Kind

Gets the Kind value. 取得對應的 ODF 文件種類。

public OdfDocumentKind Kind { get; }

Property Value

OdfDocumentKind

MimeType

Gets the MimeType value. 取得 ODF 封裝或扁平 XML 宣告的 MIME 類型。

public string MimeType { get; }

Property Value

string