ExpressionBindingDescriptor.TryGetPropertyDescription(Type, String, out ExpressionBindingDescription) Method
In This Article
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 |
---|---|---|
component |
Type | A control type. |
property |
String | A property name. |
value | Expression |
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