Table of Contents

Class OdfSubDocumentReference

Namespace
OdfKit.Text
Assembly
OdfKit.dll

Describes a section reference in a master text document pointing to an external sub-document. 描述主控文字文件中指向外部子文件的區段參照。

public sealed record OdfSubDocumentReference : IEquatable<OdfSubDocumentReference>
Inheritance
OdfSubDocumentReference
Implements
Inherited Members

Constructors

OdfSubDocumentReference(string, string, string)

Describes a section reference in a master text document pointing to an external sub-document. 描述主控文字文件中指向外部子文件的區段參照。

public OdfSubDocumentReference(string SectionName, string Href, string Actuate = "onLoad")

Parameters

SectionName string

The section name (text:section/@text:name). / 區段名稱(text:section/@text:name)。

Href string

The sub-document URI (text:section-source/@xlink:href). / 子文件 URI(text:section-source/@xlink:href)。

Actuate string

The sub-document load timing (text:section-source/@xlink:actuate). onLoad means the sub-document content loads immediately when the master document is opened; onRequest means lazy loading, with the consuming application deciding when to load it (e.g. when the user expands the section). 子文件載入時機(text:section-source/@xlink:actuateonLoad 表示開啟主控文件時 立即載入子文件內容;onRequest 表示延遲載入,由使用者端應用程式決定何時載入 (例如使用者展開該區段時)。

Properties

Actuate

The sub-document load timing (text:section-source/@xlink:actuate). onLoad means the sub-document content loads immediately when the master document is opened; onRequest means lazy loading, with the consuming application deciding when to load it (e.g. when the user expands the section). 子文件載入時機(text:section-source/@xlink:actuateonLoad 表示開啟主控文件時 立即載入子文件內容;onRequest 表示延遲載入,由使用者端應用程式決定何時載入 (例如使用者展開該區段時)。

public string Actuate { get; init; }

Property Value

string

Href

The sub-document URI (text:section-source/@xlink:href). / 子文件 URI(text:section-source/@xlink:href)。

public string Href { get; init; }

Property Value

string

SectionName

The section name (text:section/@text:name). / 區段名稱(text:section/@text:name)。

public string SectionName { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out string)

public void Deconstruct(out string SectionName, out string Href, out string Actuate)

Parameters

SectionName string
Href string
Actuate string

Equals(OdfSubDocumentReference?)

public bool Equals(OdfSubDocumentReference? other)

Parameters

other OdfSubDocumentReference

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OdfSubDocumentReference?, OdfSubDocumentReference?)

public static bool operator ==(OdfSubDocumentReference? left, OdfSubDocumentReference? right)

Parameters

left OdfSubDocumentReference
right OdfSubDocumentReference

Returns

bool

operator !=(OdfSubDocumentReference?, OdfSubDocumentReference?)

public static bool operator !=(OdfSubDocumentReference? left, OdfSubDocumentReference? right)

Parameters

left OdfSubDocumentReference
right OdfSubDocumentReference

Returns

bool