NamedElement NamedElement NamedElement NamedElement Class


Identifies an element within the hierarchy of elements under a 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


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

  <NamedElement NameReference="Pg2Heading1" />

  <NamedElement NameReference="Pg2P1" />

  <NamedElement NameReference="Pg2P2" />

  <NamedElement NameReference="Pg2Fig1" />


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


NamedElement() NamedElement() NamedElement() NamedElement()

Initializes a new instance of the NamedElement class.


NameReference NameReference NameReference NameReference

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


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to