Export (0) Print
Expand All

StoryFragments Class

Represents a set of one or more StoryFragment elements.

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

'Declaration
Public Class StoryFragments
	Implements IAddChild
'Usage
Dim instance As StoryFragments

public class StoryFragments implements IAddChild
public class StoryFragments implements IAddChild
<StoryFragments .../>

A StoryFragments element defines the structure and content of a FixedPage.

StoryFragments is the root of one or more StoryFragment elements.

For detailed information about the document structure of XPS, see Chapter 9 and Appendix E of the XML Paper Specification (XPS) that can be downloaded at http://go.microsoft.com/fwlink/?LinkID=65761.

The following example shows how to use of the StoryFragments element in an XPS document. For the full sample, see Document Structure Sample.

<StoryFragments
      xmlns="http://schemas.microsoft.com/xps/2005/06/documentstructure"
      xmlns:x="http://schemas.microsoft.com/xps/2005/06/documentstructure" 
      xmlns:my="clr-namespace:MyCompany.MyProduct>

  <StoryFragment FragmentType="Header">
    <ParagraphStructure>
      <NamedElement NameReference="Pg1HeaderP1" />
    </ParagraphStructure>
  </StoryFragment>

  <StoryFragment StoryName="DocumentBody" FragmentType="Content">
    <SectionStructure>
      <ParagraphStructure>
        <NamedElement NameReference="Pg1Heading1" />
      </ParagraphStructure>

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

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

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

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

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

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

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

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

      <TableStructure>
        <TableRowGroupStructure>

          <TableRowStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R1C1P1" />
              </ParagraphStructure>
            </TableCellStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R1C2P1" />
              </ParagraphStructure>
            </TableCellStructure>
          </TableRowStructure>

          <TableRowStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R2C1P1" />
              </ParagraphStructure>
            </TableCellStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R2C2P1" />
              </ParagraphStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R2C2P2" />
              </ParagraphStructure>
            </TableCellStructure>
          </TableRowStructure>

          <TableRowStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R3C1P1" />
              </ParagraphStructure>
            </TableCellStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R3C2P1" />
              </ParagraphStructure>
            </TableCellStructure>
          </TableRowStructure>

          <TableRowStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R4C1P1" />
              </ParagraphStructure>
            </TableCellStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R4C2P1" />
              </ParagraphStructure>
            </TableCellStructure>
          </TableRowStructure>

          <TableRowStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R5C1P1" />
              </ParagraphStructure>
            </TableCellStructure>
            <TableCellStructure>
              <ParagraphStructure>
                <NamedElement NameReference="R5C2P1" />
              </ParagraphStructure>
            </TableCellStructure>
          </TableRowStructure>

        </TableRowGroupStructure>
      </TableStructure>
    </SectionStructure>
  </StoryFragment>

  <StoryFragment FragmentType="Footer">
    <ParagraphStructure>
      <NamedElement NameReference="Pg1FooterP1" />
    </ParagraphStructure>
    <ParagraphStructure>
      <NamedElement NameReference="Pg1FooterP2" />
    </ParagraphStructure>
  </StoryFragment>

</StoryFragments>

System.Object
  System.Windows.Documents.DocumentStructures.StoryFragments

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:
© 2014 Microsoft