NamedElement Class

NamedElement Class


Identifies an element within the hierarchy of elements under a FixedPage.

Namespace:   System.Windows.Documents.DocumentStructures
Assembly:  PresentationFramework (in PresentationFramework.dll)


public class NamedElement : BlockElement


Initializes a new instance of the NamedElement class.


Gets or sets the name of the element in the FixedPage markup hierarchy that provides the content for the parent of the NamedElement.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)


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

The following example shows the use of ParagraphStructure and FigureStructure elements in an XML Paper Specification (XPS) document, each with a NamedElement child.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
© 2015 Microsoft