NamedElement Class
Identifies an element within the hierarchy of elements under a FixedPage.
System.Windows.Documents.DocumentStructures::BlockElement
System.Windows.Documents.DocumentStructures::NamedElement
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.
The NamedElement type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | NameReference | Gets or sets the name of the element in the FixedPage markup hierarchy that provides the content for the parent of the NamedElement. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Each page of an XPS document contains a FixedPage element that defines its content in the form of positional text runs and graphics. 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. The NamedElement class is used to define the associations between content and structure parts of the document markup. 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. 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.
For more information about structure elements of XPS documents, see Chapter 9 and Appendix E of the XML Paper Specification (XPS) available for download at http://go.microsoft.com/fwlink/?LinkID=67000.
The following example shows the use of ParagraphStructure and FigureStructure elements in an XML Paper Specification (XPS) document, each with a NamedElement child.
<ParagraphStructure> <NamedElement NameReference="Pg2Heading1" /> </ParagraphStructure> <ParagraphStructure> <NamedElement NameReference="Pg2P1" /> </ParagraphStructure> <ParagraphStructure> <NamedElement NameReference="Pg2P2" /> </ParagraphStructure> <FigureStructure> <NamedElement NameReference="Pg2Fig1" /> </FigureStructure>
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
