FixedDocument.DocumentPaginator Property
Gets the paginator for the FixedDocument that provides page-oriented services such as getting a particular page and repaginating in response to changes.
Assembly: PresentationFramework (in PresentationFramework.dll)
Property Value
Type: System.Windows.Documents.DocumentPaginatorAn object of a class derived from DocumentPaginator that provides pagination services.
Implements
IDocumentPaginatorSource.DocumentPaginatorIf you need a paginator with automatic repagination in responses to changes, such as adding content to the document, derive a class from DynamicDocumentPaginator which itself inherits from DocumentPaginator.
The following example shows how to create a FixedDocument that has a paginator configured for a particular page size.
// ------------------------ CreateFixedDocument ----------------------- /// <summary> /// Creates an empty FixedDocument.</summary> /// <returns> /// An empty FixedDocument without any content.</returns> private FixedDocument CreateFixedDocument() { FixedDocument fixedDocument = new FixedDocument(); fixedDocument.DocumentPaginator.PageSize = new Size(96 * 8.5, 96 * 11); return fixedDocument; }
The following example also shows use of the DocumentPaginator property.
// ------------------------ CreateFixedDocument ----------------------- /// <summary> /// Creates an empty FixedDocument.</summary> /// <returns> /// An empty FixedDocument without any content.</returns> private FixedDocument CreateFixedDocument() { FixedDocument fixedDocument = new FixedDocument(); fixedDocument.DocumentPaginator.PageSize = new Size(96 * 8.5, 96 * 11); return fixedDocument; }
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.