FixedPage Class
.NET Framework 3.0
Provides the content for a high fidelity, fixed-format page.
Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
[ContentPropertyAttribute("Children")] public sealed class FixedPage : FrameworkElement, IAddChild, IUriContext
/** @attribute ContentPropertyAttribute("Children") */
public final class FixedPage extends FrameworkElement implements IAddChild, IUriContext
ContentPropertyAttribute("Children") public final class FixedPage extends FrameworkElement implements IAddChild, IUriContext
<FixedPage> Children </FixedPage>
FixedPage is typically used to provide the content for a page within a FixedDocument.
FixedPage automatically defines page breaks at the start and end of its content.
The following example shows use of the FixedPage class. For the full sample, see Saving an XPS Document Sample.
// --------------------- CreateFifthPageContent ----------------------- /// <summary> /// Creates the content for the fifth fixed page.</summary> /// <returns> /// The page content for the fifth fixed page.</returns> private PageContent CreateFifthPageContent() { PageContent pageContent = new PageContent(); FixedPage fixedPage = new FixedPage(); UIElement visual = CreateThirdVisual(false); FixedPage.SetLeft(visual, 0); FixedPage.SetTop(visual, 0); double pageWidth = 96 * 8.5; double pageHeight = 96 * 11; fixedPage.Width = pageWidth; fixedPage.Height = pageHeight; fixedPage.Children.Add((UIElement)visual); Size sz = new Size(8.5 * 96, 11 * 96); fixedPage.Measure(sz); fixedPage.Arrange(new Rect(new Point(), sz)); fixedPage.UpdateLayout(); ((IAddChild)pageContent).AddChild(fixedPage); return pageContent; }// end:CreateFifthPageContent()
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.Community Additions
ADD
Show: