Skip to main content
All docs
V24.1

GroupItemFluentBuilder.AddParameterItem(Parameter, Action<ParameterItemFluentBuilder>) Method

Adds a report parameter editor to the UI. Accepts a report parameter object.

Namespace: DevExpress.XtraReports.Parameters

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

NuGet Package: DevExpress.Printing.Core

Declaration

public GroupItemFluentBuilder AddParameterItem(
    Parameter parameter,
    Action<ParameterItemFluentBuilder> configuration = null
)

Parameters

Name Type Description
parameter Parameter

A report parameter object.

Optional Parameters

Name Type Default Description
configuration Action<ParameterItemFluentBuilder> null

An action that customizes the report parameter editor.

Returns

Type Description
GroupItemFluentBuilder

A group builder, so you can chain additional methods that customize the group.

Example

using DevExpress.XtraReports.Parameters;
// ...
using Orientation = DevExpress.XtraReports.Parameters.Orientation;
// ...
ParameterPanelFluentBuilder.Begin(report)
    .AddParameterItem(report.Parameters[0], p => p
        .WithLabelOrientation(Orientation.Vertical))
.End();
Default panel Panel with a customized parameter
Default panel Panel with a customized parameter
See Also