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.

BlockElement

不要使用。Do not use.

FigureStructure

表示文档中的绘图、图表或关系图。Represents a drawing, chart, or diagram in a document.

ListItemStructure

表示列表或大纲中的项。Represents an item in a list or outline.

ListStructure

表示文档中项的列表。Represents a list of items in a document.

NamedElement

标识 FixedPage 下的元素层次结构中的元素。Identifies an element within the hierarchy of elements under a FixedPage.

ParagraphStructure

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

SectionStructure

表示文档中的一部分内容。Represents a section of content in a document.

SemanticBasicElement

XML 纸张规范 (XPS) 文档的标记中的 XML 元素。An XML element in the markup for XML Paper Specification (XPS) documents.

StoryBreak

标识由一个或多个 StoryFragment 元素组成的文章的开头或结尾。Identifies the start or end of story composed of one or more StoryFragment elements.

StoryFragment

表示 XPS 文档中的整篇文章或其中一部分。Represents all or part of a story within an XPS document.

StoryFragments

表示一组元素,其中包含一个或多个 StoryFragment 元素。Represents a set of one or more StoryFragment elements.

TableCellStructure

表示表中的单元格。Represents a cell in a table.

TableRowGroupStructure

表示表中的一行或多行的集合。Represents a set of one or more rows in a table.

TableRowStructure

表示表中的一个或多个单元格的行。Represents a row of one or more cells in a table.

TableStructure

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

注解

XPSXPS 文档的格式设置和布局使内容的不同部分在语义形式(如段落、表和列表)中的行为相同。The formatting and layout of an XPSXPS 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.

XPSXPS 文档的每一页都包含一个 FixedPage 元素,该元素以位置文本运行和图形的形式定义其内容Each page of an XPSXPS document contains a FixedPage element that defines its content in the form of positional text runs and graphics. 通过使用文档结构元素,XPSXPS 文档的页面还可与用节、段落、列表、图表和表格形式定义页面结构StoryFragment 元素相关联。Through the use of document structure elements, pages of an XPSXPS 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 是结构化元素的子元素,如位于页面 StoryFragment 层次结构中的表格单元或项目符号列表项。A 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 标识同一页面的 FixedPage 层次结构中的项。A NamedElement identifies an item in the FixedPage hierarchy of the same page. 它引用的项是结构元素的内容。The item it refers to is the content of the structural element.

创建 XPSXPS 文档的应用程序不需要包括结构标记,但使用文档结构元素可增强应用程序访问和使用文档内容的灵活性。Applications that create XPSXPS 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.

有关 XPSXPS 文档的结构元素的详细信息,请参阅可在https://go.microsoft.com/fwlink/?LinkID=67000下载的 XML 纸张规范(XPS)的第9章和附录 E。For more information about structure elements of XPSXPS documents, see Chapter 9 and Appendix E of the XML Paper Specification (XPS) available for download at https://go.microsoft.com/fwlink/?LinkID=67000.

另请参阅