This documentation is archived and is not being maintained.
DocumentPaginator Class
Visual Studio 2010
Provides an abstract base class that supports creation of multiple-page elements from a single document.
System::Object
System.Windows.Documents::DocumentPaginator
System.Windows.Annotations::AnnotationDocumentPaginator
System.Windows.Documents::DynamicDocumentPaginator
System.Windows.Documents::DocumentPaginator
System.Windows.Annotations::AnnotationDocumentPaginator
System.Windows.Documents::DynamicDocumentPaginator
Assembly: PresentationCore (in PresentationCore.dll)
The DocumentPaginator type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IsPageCountValid | When overridden in a derived class, gets a value indicating whether PageCount is the total number of pages. |
![]() | PageCount | When overridden in a derived class, gets a count of the number of pages currently formatted |
![]() | PageSize | When overridden in a derived class, gets or sets the suggested width and height of each page. |
![]() | Source | When overridden in a derived class, returns the element being paginated. |
| Name | Description | |
|---|---|---|
![]() | CancelAsync | Cancels a previous GetPageAsync or DynamicDocumentPaginator::GetPageNumberAsync operation. |
![]() | ComputePageCount | Forces a pagination of the content, updates PageCount with the new total, and sets IsPageCountValid to true. |
![]() | ComputePageCountAsync() | Asynchronously, forces a pagination of the content, updates PageCount with the new total, and sets IsPageCountValid to true. |
![]() | ComputePageCountAsync(Object) | Asynchronously, forces a pagination of the content, updates PageCount with the new total, sets IsPageCountValid to true. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetPage | When overridden in a derived class, gets the DocumentPage for the specified page number. |
![]() | GetPageAsync(Int32) | Asynchronously returns (through the GetPageCompleted event) the DocumentPage for the specified page number. |
![]() | GetPageAsync(Int32, Object) | Asynchronously returns (through the GetPageCompleted event) the DocumentPage for the specified page number and assigns the specified ID to the asynchronous task. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnComputePageCountCompleted | Raises the ComputePageCountCompleted event. |
![]() | OnGetPageCompleted | Raises the GetPageCompleted event. |
![]() | OnPagesChanged | Raises the PagesChanged event. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | ComputePageCountCompleted | Occurs when a ComputePageCountAsync operation has finished. |
![]() | GetPageCompleted | Occurs when GetPageAsync has completed. |
![]() | PagesChanged | Occurs when the document content is changed. |
If you need automatic background repagination in response to events such as changing the page size of a FlowDocument, then use DynamicDocumentPaginator as your base class.
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.
Show:
