Breyta

Deila með


NamedElement Class

Definition

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
Inheritance
NamedElement

Examples

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>

Remarks

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 https://www.ecma-international.org/publications-and-standards/standards/ecma-388/.

Constructors

NamedElement()

Initializes a new instance of the NamedElement class.

Properties

NameReference

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

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(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)

Applies to