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
extensionstring包含前導句點的檔案副檔名
mimeTypestringODF 封裝或扁平 XML 宣告的 MIME 類型
kindOdfDocumentKind對應的 ODF 文件種類
bodyKindOdfDocumentKind對應於
office:body子元素的內容種類isFlatXmlbool是否為單一 XML (Flat XML) 格式
Properties
BodyKind
Gets the BodyKind value.
取得對應於 office:body 子元素的內容種類。
public OdfDocumentKind BodyKind { get; }
Property Value
Extension
Gets the Extension value. 取得包含前導句點的檔案副檔名。
public string Extension { get; }
Property Value
IsFlatXml
Gets a value indicating the IsFlatXml state. 取得是否為單一 XML (Flat XML) 格式。
public bool IsFlatXml { get; }
Property Value
IsMasterDocument
Returns whether this instance is master document. 取得是否為 ODF 主控文件格式。
public bool IsMasterDocument { get; }
Property Value
IsTemplate
Returns whether this instance is template. 取得是否為 ODF 範本格式。
public bool IsTemplate { get; }
Property Value
Kind
Gets the Kind value. 取得對應的 ODF 文件種類。
public OdfDocumentKind Kind { get; }
Property Value
MimeType
Gets the MimeType value. 取得 ODF 封裝或扁平 XML 宣告的 MIME 類型。
public string MimeType { get; }