Back to Devexpress

PageInfoTextBrickBase.PageInfo Property

corelibraries-devexpress-dot-xtraprinting-dot-pageinfotextbrickbase.md

latest4.2 KB
Original Source

PageInfoTextBrickBase.PageInfo Property

Specifies the type of information to be displayed within the brick.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(PageInfo.None)]
public virtual PageInfo PageInfo { get; set; }
vb
<DefaultValue(PageInfo.None)>
Public Overridable Property PageInfo As PageInfo

Property Value

TypeDefaultDescription
PageInfoNone

A PageInfo enumeration value, specifying information type and its representation.

|

Available values:

NameDescription
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 the current date and time are displayed in the 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.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

reporting-mvc-display-information-in-xrpageinfo/CS/WebDocumentViewer_UserName/Services/CustomPageInfoDataProvider.cs#L14

csharp
{
    if (brick.PageInfo != PageInfo.UserName)
    {

reporting-mvc-display-information-in-xrpageinfo/VB/WebDocumentViewer_UserName_VB/Services/CustomPageInfoDataProvider.vb#L13

vb
ByVal brick As PageInfoTextBrickBase) As String
If brick.PageInfo <> PageInfo.UserName Then
    Return Nothing

See Also

PageInfo

PageInfoTextBrickBase Class

PageInfoTextBrickBase Members

DevExpress.XtraPrinting Namespace