Skip to main content

ExpressionBindingDescriptor.SetPropertyDescription(Type, String, ExpressionBindingDescription) Method

Adds a new specified property description for the specified control to the Properties panel’s Expresssions tab.

Namespace: DevExpress.XtraReports.Expressions

Assembly: DevExpress.XtraReports.v22.1.dll

NuGet Package: DevExpress.Reporting.Core


public static void SetPropertyDescription(
    Type componentType,
    string propertyName,
    ExpressionBindingDescription description


Name Type Description
componentType Type

A Type object that specifies the control type for which to add the property.

propertyName String

A string that specifies the property name to add.

description ExpressionBindingDescription

A ExpressionBindingDescription object that specifies the property description.


To add a new property description to the End-User Report Designer’s Expressions tab, create a new ExpressionBindingDescription instance with the required settings and use the SetPropertyDescription method. Each description object contains information about the list of events in which the property is available (ExpressionBindingDescription.EventNames), the property category (ExpressionBindingDescription.ScopeName), the collection of inner properties in a case of the complex property (ExpressionBindingDescription.BindableProperties) and other settings.

The following code sample demonstrates how to add the Value property to a new custom category at the tab’s first position.

using DevExpress.XtraReports.Expressions;
// ...

ExpressionBindingDescription myDescription = new ExpressionBindingDescription(
    new string[] { "BeforePrint" }, 0, new string[0], "My category");
ExpressionBindingDescriptor.SetPropertyDescription(typeof(XRLabel), "Value", myDescription);

See the ExpressionBindingDescriptor class topic for more information.

See Also