[]
        
(Showing Draft Content)

C1.WPF.RulesManager.RulesEngineRule

RulesEngineRule Class

Base class for C1RulesEngine rules.

Implements
IXmlSerializable
Namespace: C1.WPF.RulesManager
Assembly: C1.WPF.RulesManager.dll
Syntax
public abstract class RulesEngineRule : IXmlSerializable
Public MustInherit Class RulesEngineRule
    Implements IXmlSerializable

Constructors

Name Description
RulesEngineRule()

Initializes a new instance of the RulesEngineRule class.

Properties

Name Description
IsEnabled

Gets or sets whether this conditional formatting is enabled.

Name

The name used to identify the rule.

Ranges

The ranges which determine the scope the rule is applied to.

StopIfTrue

Gets or sets whether additional formatting rules for the item should be evaluated, if the current rule is set to True.

Methods

Name Description
AppliesTo(RulesEngineSource, int, string)

Determines whether this rule can be applied to the specified item.

GetApplicableFields(RulesEngineSource)

Gets the fields from the source where this rule is applicable

GetSourceRanges(RulesEngineSource)

Gets a new range collection specifying the fields where this rule can be applied.

GetStyle(RulesEngineSource, int, string)

Gets the style for the specified source.

Intersects(int, string)

Determines whether the ranges specified in the rule intersect the context being queried.

OnRuleChanged()

Called when the definition of the rule changes.

Events

Name Description
RuleChanged

Raised when the definition of the rule changes.