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

Parameter.Description Property

Specifies a description that identifies a parameter editor in the Parameters UI.

Namespace: DevExpress.XtraReports.Parameters

Assembly: DevExpress.Printing.v21.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

[DefaultValue("")]
[XRLocalizable(true)]
public string Description { get; set; }

Property Value

Type Default Description
String String.Empty

A String that is the parameter description.

Remarks

Use the Description property to specify a text description for the Parameters UI.

The following code creates and adds a parameter with the Company description:

XtraReport1 report = new XtraReport1();
DevExpress.XtraReports.Parameters.Parameter parameter1 = new DevExpress.XtraReports.Parameters.Parameter();
parameter1.Description = "Company";
parameter1.ExpressionBindings.AddRange(new DevExpress.XtraReports.Expressions.BasicExpressionBinding[]
{
    new DevExpress.XtraReports.Expressions.BasicExpressionBinding("Value", "AFKI")
});
parameter1.Name = "parameter1";
report.Parameters.Add(parameter1);

Report Parameters Editor

In the Print Preview, the description appears in the Parameters panel.

ReportParameters2

If you assign a report to the ReportPrintTool and subsequently call the XtraReport.CreateDocument method, and the XtraReport.RequestParameters property is enabled, the dialog appears that prompts for the report parameter values. The Description value identifies a parameter editor:

ReportParameters3

For more information, review the following help topic: Using Report Parameters.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Description 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