System.Windows.Documents.DocumentStructures 命名空間

提供類別,就章節、段落、圖、項目清單或編號清單以及資料表方面來描述 XpsDocument 的結構。 Provides classes to describe the structure of an XpsDocument in terms of sections, paragraphs, figures, bulleted or numbered lists, and tables.



請勿使用。Do not use.


表示文件中的繪圖、圖表 (Chart) 或圖表 (Diagram)。Represents a drawing, chart, or diagram in a document.


表示清單或外框中的項目。Represents an item in a list or outline.


表示文件中的項目清單。Represents a list of items in a document.


識別 FixedPage 下項目階層內的項目。Identifies an element within the hierarchy of elements under a FixedPage.


表示文件中的段落。Represents a paragraph in a document.


表示文件中的一段內容。Represents a section of content in a document.


適用於 XML 文件規格 (XPS) 文件之標記中的 XML 元素。An XML element in the markup for XML Paper Specification (XPS) documents.


識別由一個或多個 StoryFragment 項目組成的 Story 開頭或結尾。Identifies the start or end of story composed of one or more StoryFragment elements.


代表 XPS 文件內完整或部分的劇本。Represents all or part of a story within an XPS document.


表示一個或多個 StoryFragment 項目的集合。Represents a set of one or more StoryFragment elements.


表示表格中的儲存格。Represents a cell in a table.


表示表格中一個或多個資料列的集合。Represents a set of one or more rows in a table.


表示表格中一個或多個儲存格的資料列。Represents a row of one or more cells in a table.


表示文件中的表格。Represents a table in a document.


XPS 檔的格式設定和配置可讓內容的不同部分以語義形式來運作,例如段落、表格和清單。The formatting and layout of an XPS document enables different parts of the content to behave in a semantic form such as in paragraphs, tables, and lists. 人們可以從外觀中觀察內容的語法結構;但是,標記的實體格式和配置不會明確地識別實際的語義元素。Humans can perceive the semantic structure of the content from its appearance; but the physical format and layout of the markup does not explicitly identify the actual semantic elements. 為了讓您能夠以程式設計方式理解檔組織, System.Windows.Documents.DocumentStructures 命名空間提供了結構專案,可用來依照其語義部分定義檔。To enable programmatic understanding of the document organization, the System.Windows.Documents.DocumentStructures namespace provides structure elements that can be used to define the document by its semantic parts.

XPS 檔的每個頁面都包含一個專案 FixedPage ,該專案會以位置文字執行和圖形的形式來定義其 內容Each page of an XPS document contains a FixedPage element that defines its content in the form of positional text runs and graphics. 透過使用檔結構專案,XPS 檔的頁面也可以與專案相關聯,這些專案會 StoryFragment 以章節、段落、清單、圖形和資料表的形式定義頁面的 結構Through the use of document structure elements, pages of an XPS document can also be associated with StoryFragment elements that define the structure of the page in the form of sections, paragraphs, lists, figures, and tables. NamedElement類別是用來定義檔標記之內容和結構部分之間的關聯。The NamedElement class is used to define the associations between content and structure parts of the document markup. NamedElement是結構化元素的子系,例如位於頁面階層架構中的資料表資料格或專案符號清單專案 StoryFragmentA NamedElement is the child of a structural element, such as a table cell or bullet list item that is located in the StoryFragment hierarchy of a page. NamedElement 識別相同頁面階層中的專案 FixedPageA NamedElement identifies an item in the FixedPage hierarchy of the same page. 它所參考的專案是結構化元素的內容。The item it refers to is the content of the structural element.

建立 XPS 檔的應用程式不需要包含結構化標記,但使用檔結構專案可增強應用程式存取和使用檔內容的彈性。Applications that create XPS documents are not required to include structural markup, but use of document structure elements enhances the flexibility by which applications can access and use the content of a document.

如需 XPS 檔的結構元素的詳細資訊,請參閱 XML 檔規格的第9章和附錄 E (XPS) 可從下載 more information about structure elements of XPS documents, see Chapter 9 and Appendix E of the XML Paper Specification (XPS) available for download at