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