New to Telerik UI for WinFormsStart a free 30-day trial

ComplexCondition evaluates two conditions related with a binary operator. Inherits Condition

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class ComplexCondition : Condition

Inheritance: objectConditionComplexCondition

Inherited Members Condition.FillAffectedEvents(List<RaisedRoutedEvent>)Condition.AffectedPropertiesCondition.AffectedEvents

Constructors

Initializes a new instance of the ComplexCondition class.

C#
public ComplexCondition()

Initializes a new instance of the ComplexCondition class from the first condition, binary operator, and second condition.

C#
public ComplexCondition(Condition condition1, BinaryOperator binaryOperator, Condition condition2)
Parameters:condition1ConditionbinaryOperatorBinaryOperatorcondition2Condition

Properties

Gets or sets the binary operator to be used for evaluating the condition.

C#
public BinaryOperator BinaryOperator { get; set; }

Gets or sets the first condition.

C#
public Condition Condition1 { get; set; }

Gets or sets the second condition.

C#
public Condition Condition2 { get; set; }

Methods

Evaluates the complex condition.

C#
public override bool Evaluate(RadObject target)
Parameters:targetRadObjectReturns:

bool

Overrides: Condition.Evaluate(RadObject)

C#
protected override void FillAffectedProperties(List<RadProperty> inList)
Parameters:inListList<RadProperty>

Overrides: Condition.FillAffectedProperties(List<RadProperty>)

Retrives a string representation of the ComplexCondition class.

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()