FixedPage (Clase)
.NET Framework 3.5
Actualización: noviembre 2007
Proporciona el contenido de una página de formato fijo de alta fidelidad.
Ensamblado: PresentationFramework (en PresentationFramework.dll)
XMLNS para XAML: http://schemas.microsoft.com/winfx/xaml/presentation
[ContentPropertyAttribute("Children")] public sealed class FixedPage : FrameworkElement, IAddChild, IUriContext
/** @attribute ContentPropertyAttribute("Children") */
public final class FixedPage extends FrameworkElement implements IAddChild,
IUriContext
public final class FixedPage extends FrameworkElement implements IAddChild, IUriContext
<FixedPage> Children </FixedPage>
FixedPage se utiliza normalmente para proporcionar el contenido de una página dentro de FixedDocument.
FixedPage define automáticamente saltos de página al inicio y al final del contenido.
En el siguiente ejemplo se muestra la forma de utilizar la clase FixedPage. Encontrará el ejemplo completo en Ejemplo Creating an XPS Document.
// --------------------- 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 Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.