Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / ConditionalFormat Class / AddRule(FormattingRuleBase) Method
The rule to add.


In This Topic
    AddRule(FormattingRuleBase) Method
    In This Topic
    Adds the rule.
    Syntax
    'Declaration
     
    Public Function AddRule( _
       ByVal rule As FormattingRuleBase _
    ) As FormattingRuleBase
    'Usage
     
    Dim instance As ConditionalFormat
    Dim rule As FormattingRuleBase
    Dim value As FormattingRuleBase
     
    value = instance.AddRule(rule)
    public FormattingRuleBase AddRule( 
       FormattingRuleBase rule
    )

    Parameters

    rule
    The rule to add.

    Return Value

    Returns the new conditional rule.
    Remarks
    This method will modify the priority of the new added rule. The new added rule always has the highest priority that is to say, its priority will be 1 and all other existing rules' proierity will be plus 1.
    See Also