XRPageInfo.PageInfo Property
Gets or sets the value of the PageInfo type.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Page |
Number |
A Page |
Available values:
Name | Description |
---|---|
None | Indicates that the Page |
Number | Indicates that the current page number is displayed in the Page |
Number |
Indicates that both the current page number and the total number of pages in the current report are displayed in the current Page |
Rom |
Indicates that the current page number is displayed in the Page |
Rom |
Indicates that the current page number is displayed in the Page |
Date |
Indicates that the current date and time are displayed in the Page |
User |
Indicates that the user name for the current thread is displayed in the Page |
Total | Indicates that the total number of pages is displayed in the Page |
#Remarks
The information defined by the PageInfo enumeration is displayed in the PageInfoBrick object.
#Example
The following code creates the XRPageInfo control and sets its properties:
using System.Drawing;
using DevExpress.XtraPrinting;
using DevExpress.XtraReports.UI;
// ...
public XRPageInfo CreateXRPageInfo() {
XRPageInfo pageInfo1 = new XRPageInfo
{
SizeF = new SizeF(200F, 50F),
BackColor = Color.PaleGreen,
PageInfo = PageInfo.DateTime,
Format = "{0:MM/dd/yyyy}",
StartPageNumber = 2
};
return pageInfo1;
}
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PageInfo property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.