Class OdfSubDocumentReference
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
SectionNamestringThe section name (
text:section/@text:name). / 區段名稱(text:section/@text:name)。HrefstringThe sub-document URI (
text:section-source/@xlink:href). / 子文件 URI(text:section-source/@xlink:href)。ActuatestringThe sub-document load timing (
text:section-source/@xlink:actuate).onLoadmeans the sub-document content loads immediately when the master document is opened;onRequestmeans lazy loading, with the consuming application deciding when to load it (e.g. when the user expands the section). 子文件載入時機(text:section-source/@xlink:actuate)onLoad表示開啟主控文件時 立即載入子文件內容;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:actuate)onLoad 表示開啟主控文件時
立即載入子文件內容;onRequest 表示延遲載入,由使用者端應用程式決定何時載入
(例如使用者展開該區段時)。
public string Actuate { get; init; }
Property Value
Href
The sub-document URI (text:section-source/@xlink:href). / 子文件 URI(text:section-source/@xlink:href)。
public string Href { get; init; }
Property Value
SectionName
The section name (text:section/@text:name). / 區段名稱(text:section/@text:name)。
public string SectionName { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out string)
public void Deconstruct(out string SectionName, out string Href, out string Actuate)
Parameters
Equals(OdfSubDocumentReference?)
public bool Equals(OdfSubDocumentReference? other)
Parameters
otherOdfSubDocumentReference
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(OdfSubDocumentReference?, OdfSubDocumentReference?)
public static bool operator ==(OdfSubDocumentReference? left, OdfSubDocumentReference? right)
Parameters
leftOdfSubDocumentReferencerightOdfSubDocumentReference
Returns
operator !=(OdfSubDocumentReference?, OdfSubDocumentReference?)
public static bool operator !=(OdfSubDocumentReference? left, OdfSubDocumentReference? right)
Parameters
leftOdfSubDocumentReferencerightOdfSubDocumentReference