Back to Devexpress

IAppearanceRuleProperties.Method Property

expressappframework-devexpress-dot-expressapp-dot-conditionalappearance-dot-iappearanceruleproperties-42a7aa06.md

latest2.1 KB
Original Source

IAppearanceRuleProperties.Method Property

Specifies the name of the business class method used to determine whether the Conditional Appearance rule is currently active.

Namespace : DevExpress.ExpressApp.ConditionalAppearance

Assembly : DevExpress.Persistent.Base.v25.2.dll

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
[DataSourceProperty("MethodNames", new string[]{})]
string Method { get; set; }
vb
<DataSourceProperty("MethodNames", New String() {})>
Property Method As String

Property Value

TypeDescription
String

A string specifying the name of the method used to determine whether the rule is active.

|

Remarks

When you need to create a complex rule that cannot be specified via the IAppearanceRuleProperties.Criteria property, you can implement a business class method that takes no parameters and returns a Boolean value specifying whether the rule is currently active. In this instance, leave the Criteria property unspecified and set the Method property to the name of the implemented method.

See Also

Conditional Appearance (Manage UI State)

IAppearanceRuleProperties Interface

IAppearanceRuleProperties Members

DevExpress.ExpressApp.ConditionalAppearance Namespace