[]
        
(Showing Draft Content)

C1.C1Preview.C1Page

C1Page Class

Represents a generated page of a C1PrintDocument.

Inheritance
C1Page
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
[C1ClassSerialization(true)]
public class C1Page : IDocumentLocation, IComparable

Properties

Name Description
AcceptButton

Gets the RenderInputButton representing the accept button for the current page.

Document

Gets the C1PrintDocument containing the current page.

Fragments

Gets the collection of fragments for the current page. Note that accessing this property always initializes the Fragments collection if it has not been initialized yet. Use HasFragments to test whether the Fragments collection exists.

HasFragments

Gets a value indicating whether the Fragments collection for the current page has been initialized and contains one or more elements.

ID

Gets a unique ID associated with the current page.

Index

Gets the 0-based index of the current page in the containing collection.

IsEmpty

Gets a value indicating whether the current page contains any RenderFragment objects that belong to the Body of the document.

Owner

Gets the C1PageCollection containing the current page.

PageCount

Gets or sets the logical page count.

PageNo

Gets or sets the logical 1-based page number of the current page.

PageSettings

Gets the C1PageSettings for the current page.

ResolvedInfo

Gets the PageResolvedInfo object corresponding to the current page. After the current page has been resolved, this property allows to retrieve absolute values describing the geometry of the page, margins, and columns.

Note that if the current page has not been resolved yet, the value of this property is null, so you should always test it before accessing the nested properties.

X

Gets the logical horizontal coordinate of the current page in the document. This property is 0 in documents that have no horizontal pages.

Y

Gets the logical vertical coordinate of the current page in the document. In documents without horizontal pages, this property corresponds to the page number minus one.

Methods

Name Description
AsMetafile()

Returns a Metafile representing the current page. This method draws input controls.

AsMetafile(bool)

Returns a Metafile representing the current page.

AsMetafile(Graphics, PageDrawParams)

Returns a Metafile representing the current page.

AsMetafile(Graphics, EmfType, bool, bool)

Returns a Metafile representing the current page.

AsMetafile(Graphics, EmfType, bool, bool, SmoothingMode)

Returns a Metafile representing the current page.

AsMetafile(EmfType, bool)

Returns a Metafile representing the current page.

Draw(Graphics, PageDrawParams)

Draws the current page on a Graphics.

Draw(Graphics, bool)

Draws the current page on a Graphics.

Draw(Graphics, bool, bool)

Draws the current page on a Graphics.

FindFragment(PointD)

Searches for a RenderFragment at the specified position on the current page.

Searches for a hyperlink at the specified position on the current page.

Gets the collection of all hyperlinks on the current page.

GetInputFragments(bool)

Gets the array of all RenderInputFragment objects on the current page.