Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / ConditionalFormat Class / AddCellValueRule Method
The ComparisonOperator comparison operator.
The first value.
The second value.
The style that is set to the cell when the condition is met.
The cell ranges where the rule is applied.


In This Topic
    AddCellValueRule Method
    In This Topic
    Adds the cell value rule to the rule collection.
    Syntax
    'Declaration
     
    Public Function AddCellValueRule( _
       ByVal comparisonOperator As ComparisonOperator, _
       ByVal value1 As Object, _
       ByVal value2 As Object, _
       ByVal style As StyleInfo, _
       ByVal ParamArray ranges() As CellRange _
    ) As CellValueRule
    'Usage
     
    Dim instance As ConditionalFormat
    Dim comparisonOperator As ComparisonOperator
    Dim value1 As Object
    Dim value2 As Object
    Dim style As StyleInfo
    Dim ranges() As CellRange
    Dim value As CellValueRule
     
    value = instance.AddCellValueRule(comparisonOperator, value1, value2, style, ranges)
    public CellValueRule AddCellValueRule( 
       ComparisonOperator comparisonOperator,
       object value1,
       object value2,
       StyleInfo style,
       params CellRange[] ranges
    )

    Parameters

    comparisonOperator
    The ComparisonOperator comparison operator.
    value1
    The first value.
    value2
    The second value.
    style
    The style that is set to the cell when the condition is met.
    ranges
    The cell ranges where the rule is applied.

    Return Value

    Returns the new cell value rule.
    See Also