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

XRPageInfo.TextFormatString Property

Specifies the output format for the control’s bound value (provided by the applied expression, data binding or summary).

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[Browsable(true)]
public override string TextFormatString { get; set; }

Property Value

Type Description
String

A string that specifies the control’s format.

Remarks

When the UserDesignerOptions.DataBindingMode is set to DataBindingMode.Expressions or DataBindingMode.ExpressionsAdvanced, use the TextFormatString property to specify the control’s format.

The following code snippet demonstrates how to display the current date and time and specify the output format.

//...
xrPageInfo1.PageInfo = DevExpress.XtraPrinting.PageInfo.DateTime;
xrPageInfo1.TextFormatString = "{0:MMMM d, yyyy}";

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

See Also