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

SimpleCondition evaluates when a property of an Element equals a certain value.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class SimpleCondition : Condition

Inheritance: objectConditionSimpleCondition

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

Constructors

Initializes a new instance of the SimpleCondition class from the setting to check, and the unary operator to use.

C#
public SimpleCondition(IPropertySetting settingToCheck, UnaryOperator unaryOperator)
Parameters:settingToCheckIPropertySettingunaryOperatorUnaryOperator

Initializes a new instance of the SimpleCondition class.

C#
public SimpleCondition(IPropertySetting settingToCheck)
Parameters:settingToCheckIPropertySetting

Initializes a new instance of the SimpleCondition class from the property, value and unary operator

C#
public SimpleCondition(RadProperty property, object value, UnaryOperator unaryOperator)
Parameters:propertyRadPropertyvalueobjectunaryOperatorUnaryOperator

Initializes a new instance of the SimpleCondition class from the property and value

C#
public SimpleCondition(RadProperty property, object value)
Parameters:propertyRadPropertyvalueobject

Properties

Gets or sets the setting of the current property.

C#
public IPropertySetting Setting { get; set; }

Gets or sets the unary operator of the simple condition.

C#
public UnaryOperator UnaryOperator { get; set; }

Methods

Evaluates the target RadElement using the unary operator.

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>)

Retrieves the string representation of the current instance.

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()