PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / CurrentPageLayout Property

In This Topic
    CurrentPageLayout Property (SampleC1PrintDocument)
    In This Topic
    Gets the effective layout for the current page. That layout is automatically built on the fly by merging all applicable layouts defined for the current document in C1.C1Preview.C1PrintDocument.PageLayouts. You may change the properties on CurrentPageLayout programmatically. The changes will be effective immediately if they are made in the C1.C1Preview.C1PrintDocument.PageConfigure event handler, otherwise they will take effect for the next added page.

    Note that this property is only available during document generation, at other times null is returned.

    Syntax
    'Declaration
     
    Public ReadOnly Property CurrentPageLayout As PageLayout
    public PageLayout CurrentPageLayout {get;}
    See Also