Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / ConditionalFormat Class / AddDuplicateRule Method
The style that is applied to the cell.
The cell ranges where the rule is applied.


In This Topic
    AddDuplicateRule Method
    In This Topic
    Adds a duplicate rule to the rule collection.
    Syntax
    'Declaration
     
    Public Function AddDuplicateRule( _
       ByVal style As StyleInfo, _
       ByVal ParamArray ranges() As CellRange _
    ) As DuplicateRule
    'Usage
     
    Dim instance As ConditionalFormat
    Dim style As StyleInfo
    Dim ranges() As CellRange
    Dim value As DuplicateRule
     
    value = instance.AddDuplicateRule(style, ranges)
    public DuplicateRule AddDuplicateRule( 
       StyleInfo style,
       params CellRange[] ranges
    )

    Parameters

    style
    The style that is applied to the cell.
    ranges
    The cell ranges where the rule is applied.

    Return Value

    Returns the new unique rule.
    See Also