Gets the collection of page layouts used in the current document.
In addition to the default layout which is always present, special layouts
may be defined for first, last, even and odd pages of the document.
The effective layout for each page is then produced by merging all applicable layouts.
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[TypeConverterAttribute(typeof(ExpandableObjectConverter))] [BrowsableAttribute(true)] [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)] public DocumentPageLayouts PageLayouts { get; } |
Visual Basic |
---|
<TypeConverterAttribute(GetType(ExpandableObjectConverter))> _ <BrowsableAttribute(True)> _ <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)> _ Public ReadOnly Property PageLayouts As DocumentPageLayouts Get |
Examples
The following example uses the PageLayouts property to set the page footer for the document:
Copy CodeVisual Basic
C1PrintDocument1.PageLayouts.LastPage = New C1.C1Preview.PageLayout C1PrintDocument1.PageLayouts.LastPage.PageFooter = New C1.C1Preview.RenderText("Footer on last page") C1PrintDocument1.Generate() |
Copy CodeC#
C1PrintDocument1.PageLayouts.LastPage = new C1.C1Preview.PageLayout(); C1PrintDocument1.PageLayouts.LastPage.PageFooter = new C1.C1Preview.RenderText("Footer on last page"); C1PrintDocument1.Generate(); |