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
public class NamedElement extends BlockElement
public class NamedElement extends BlockElement
<NamedElement .../>

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. For the full sample, see Document Structure Sample.

<ParagraphStructure>
  <NamedElement NameReference="Pg2Heading1" />
</ParagraphStructure>

<ParagraphStructure>
  <NamedElement NameReference="Pg2P1" />
</ParagraphStructure>

<ParagraphStructure>
  <NamedElement NameReference="Pg2P2" />
</ParagraphStructure>

<FigureStructure>
  <NamedElement NameReference="Pg2Fig1" />
</FigureStructure>

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

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: