Gets or sets the default page layout for the current document.
This property is a shortcut for Default.
(A page layout includes page settings, page headers and footers, and column definitions.)
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[XmlIgnoreAttribute] [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] [TypeConverterAttribute(typeof(ExpandableObjectConverter))] public PageLayout PageLayout { get; set; } |
Visual Basic |
---|
<XmlIgnoreAttribute> _ <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _ <TypeConverterAttribute(GetType(ExpandableObjectConverter))> _ Public Property PageLayout As PageLayout Get Set |
Examples
The following example changes the page layout's page settings to Landscape:
Copy CodeVisual Basic
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MakeDoc(C1PrintDocument1) C1PrintDocument1.Generate() End Sub Private Sub MakeDoc(ByVal doc As C1.C1Preview.C1PrintDocument) doc.PageLayout.PageSettings.Landscape = True End Sub |
Copy CodeC#
private void Form1_Load(object sender, EventArgs e) { MakeDoc(c1PrintDocument1); c1PrintDocument1.Generate(); } private void MakeDoc(C1.C1Preview.C1PrintDocument doc) { doc.PageLayout.PageSettings.Landscape = true; } |