Skip to main content
A newer version of this page is available. .

XRPageInfo() Constructor

Initializes a new instance of the XRPageInfo class with the default settings.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

public XRPageInfo()

Example

The following method demonstrates how to create an XRPageInfo object, and set its properties.

using System.Drawing;
using DevExpress.XtraPrinting;
using DevExpress.XtraReports.UI;
// ...

public XRPageInfo CreateXRPageInfo() {
   // Create an XRPageInfo object.
   XRPageInfo pageInfo1 = new XRPageInfo();

   // Set its size.
   pageInfo1.SizeF = new SizeF(200F, 50F);

   // Set its background color.
   pageInfo1.BackColor = Color.PaleGreen;

   // Set its data format.
   pageInfo1.PageInfo = PageInfo.DateTime;
   pageInfo1.Format = "{0:MM/dd/yyyy}";

   return pageInfo1;
}
See Also