Creates and measures virtualized page elements using the associated PDF viewer's scale and orientation.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.PdfViewer.dll
Syntax:
public class FixedPageElementProvider : BaseVirtualizedElementProvider<RadFixedPage>, IVirtualizedElementProvider<RadFixedPage>
Inheritance: objectBaseVirtualizedElementProvider<RadFixedPage>FixedPageElementProvider
Implements:
Inherited Members
Constructors
Initializes a provider that delegates page-element creation and sizing to the specified viewer.
public FixedPageElementProvider(RadPdfViewerElement pdfViewer)
The viewer that creates page elements and supplies their scale and orientation.
Methods
Creates the visual element for a document page through the associated viewer.
public override IVirtualizedElement<RadFixedPage> CreateElement(RadFixedPage data, object context)
The page represented by the element.
contextobjectThe context forwarded to the viewer's page-element factory.
Returns:IVirtualizedElement<RadFixedPage>
The page element created by the viewer.
Overrides:
Gets the page's dimensions after applying the viewer scale and current page orientation.
public override SizeF GetElementSize(RadFixedPage item)
The page whose displayed dimensions are measured.
Returns:The scaled page size, with width and height exchanged for horizontal page orientation.
Overrides: