XRPageInfo.PageInfo Property
Gets or sets the value of the PageInfo type.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v17.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
[DefaultValue(PageInfo.NumberOfTotal)]
[SRCategory(ReportStringId.CatBehavior)]
public PageInfo PageInfo { get; set; }
Property Value
Type | Default | Description |
---|---|---|
PageInfo | **NumberOfTotal** | A PageInfo enumeration value that determines the auxiliary information (date, page number etc.) displayed on each report page. |
Available values:
Name | Description |
---|---|
None | Indicates that the PageInfoTextBrick.Format property value is displayed in the current PageInfoTextBrick. |
Number | Indicates that the current page number is displayed in the PageInfoBrick. |
NumberOfTotal | Indicates that both the current page number and the total number of pages in the current report are displayed in the current PageInfoBrick. |
RomLowNumber | Indicates that the current page number is displayed in the PageInfoBrick using roman numerals in lowercase. |
RomHiNumber | Indicates that the current page number is displayed in the PageInfoBrick using roman numerals in uppercase. |
DateTime | Indicates that DateTime information is displayed in the current PageInfoBrick. |
UserName | Indicates that the user name for the current thread is displayed in the PageInfoBrick. |
Total | Indicates that the total number of pages is displayed in the PageInfoBrick. |
Remarks
The information defined by the PageInfo enumeration is displayed in the PageInfoBrick object.
Example
The following method demonstrates how to create an XRPageInfo object, and set some of 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;
}