The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

public static void SetPropertyDescription(
    Type componentType,
    string propertyName,
    ExpressionBindingDescription description
)
Public Shared Sub SetPropertyDescription(
    componentType As Type,
    propertyName As String,
    description As ExpressionBindingDescription
)

Parameters

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.

Remarks

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