Export (0) Print
Expand All

NamedElement Class

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

System.Object
  System.Windows.Documents.DocumentStructures.BlockElement
    System.Windows.Documents.DocumentStructures.NamedElement

Namespace:  System.Windows.Documents.DocumentStructures
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.

public class NamedElement : BlockElement
<NamedElement .../>

The NamedElement type exposes the following members.

  NameDescription
Public methodNamedElementInitializes a new instance of the NamedElement class.
Top

  NameDescription
Public propertyNameReferenceGets or sets the name of the element in the FixedPage markup hierarchy that provides the content for the parent of the NamedElement.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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>

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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