Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ExpressionBindingDescriptor.TryGetPropertyDescription(Type, String, out ExpressionBindingDescription) Method

Allows you to get an object that stores information about expression bindings of a report control’s property.

Namespace: DevExpress.XtraReports.Expressions

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public static bool TryGetPropertyDescription(
    Type componentType,
    string propertyName,
    out ExpressionBindingDescription value
)

#Parameters

Name Type Description
componentType Type

A control type.

propertyName String

A property name.

value ExpressionBindingDescription

An object that stores information about expression bindings.

#Returns

Type Description
Boolean

true if the object is retrieved successfully; otherwise, false.

#Example

using DevExpress.XtraReports.Expressions;
using DevExpress.XtraReports.UI;
// ...
ExpressionBindingDescription description;

var hasDescription = ExpressionBindingDescriptor.TryGetPropertyDescription(
    componentType: typeof(XRLabel),
    propertyName: "Text",
    value: out description
);

if (hasDescription) {
    // ...
}
See Also