Class
SimpleCondition

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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class SimpleCondition : Condition

Inheritance: objectConditionSimpleCondition

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

Constructors

SimpleCondition(IPropertySetting)

Initializes a new instance of the SimpleCondition class.

Declaration

cs-api-definition
public SimpleCondition(IPropertySetting settingToCheck)

Parameters

settingToCheck

IPropertySetting

SimpleCondition(IPropertySetting, UnaryOperator)

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

Declaration

cs-api-definition
public SimpleCondition(IPropertySetting settingToCheck, UnaryOperator unaryOperator)

Parameters

settingToCheck

IPropertySetting

unaryOperator

UnaryOperator

SimpleCondition(RadProperty, object)

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

Declaration

cs-api-definition
public SimpleCondition(RadProperty property, object value)

Parameters

property

RadProperty

value

object

SimpleCondition(RadProperty, object, UnaryOperator)

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

Declaration

cs-api-definition
public SimpleCondition(RadProperty property, object value, UnaryOperator unaryOperator)

Parameters

property

RadProperty

value

object

unaryOperator

UnaryOperator

Properties

Setting

Gets or sets the setting of the current property.

Declaration

cs-api-definition
public IPropertySetting Setting { get; set; }

Property Value

IPropertySetting

UnaryOperator

Gets or sets the unary operator of the simple condition.

Declaration

cs-api-definition
public UnaryOperator UnaryOperator { get; set; }

Property Value

UnaryOperator

Methods

Evaluate(RadObject)

Evaluates the target RadElement using the unary operator.

Declaration

cs-api-definition
public override bool Evaluate(RadObject target)

Parameters

target

RadObject

Returns

bool

Overrides Condition.Evaluate(RadObject)

FillAffectedProperties(List<RadProperty>)

Declaration

cs-api-definition
protected override void FillAffectedProperties(List<RadProperty> inList)

Parameters

inList

List<RadProperty>

Overrides Condition.FillAffectedProperties(List<RadProperty>)

ToString()

Retrieves the string representation of the current instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()