NamedElement 類別

定義

識別 FixedPage 下項目階層內的項目。

public ref class NamedElement : System::Windows::Documents::DocumentStructures::BlockElement
public class NamedElement : System.Windows.Documents.DocumentStructures.BlockElement
type NamedElement = class
    inherit BlockElement
Public Class NamedElement
Inherits BlockElement
繼承
NamedElement

範例

下列範例示範 XML 檔規格中的 和 FigureStructure 元素的使用 ParagraphStructure 方式, (XPS) 檔,每個都有子 NamedElement 系。

<ParagraphStructure>
  <NamedElement NameReference="Pg2Heading1" />
</ParagraphStructure>

<ParagraphStructure>
  <NamedElement NameReference="Pg2P1" />
</ParagraphStructure>

<ParagraphStructure>
  <NamedElement NameReference="Pg2P2" />
</ParagraphStructure>

<FigureStructure>
  <NamedElement NameReference="Pg2Fig1" />
</FigureStructure>

備註

XPS 檔的每一頁都包含一個 FixedPage 元素,以位置文字執行和圖形的形式定義其 內容 。 透過使用檔結構元素,XPS 檔的頁面也可以與 StoryFragment 以區段、段落、清單、圖表和資料表形式定義頁面 結構的 元素相關聯。 類別 NamedElement 是用來定義檔標記內容與結構部分之間的關聯。 NamedElement是結構化專案的子項,例如位於頁面階層中的 StoryFragment 資料表單元格或專案符號清單專案。 會 NamedElement 識別相同頁面階層中的 FixedPage 專案。 所參考的專案是結構化專案的內容。

如需 XPS 檔之結構元素的詳細資訊,請參閱 XML 檔規格的第 9 章和附錄 E (XPS) ,可在 下載。 https://www.ecma-international.org/publications-and-standards/standards/ecma-388/

建構函式

NamedElement()

初始化 NamedElement 類別的新執行個體。

屬性

NameReference

取得或設定 FixedPage 標記階層中的項目名稱,此項目提供 NamedElement 之父代的內容。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於