Spread WPF 16
GrapeCity.Windows.SpreadSheet.Data Namespace / ConditionalFormat Class / AddDateOccurringRule Method
The DateOccurringType data occurring type.
The style that is set to the cell when the condition is met.
The cell ranges where the rule is applied.
Example


In This Topic
    AddDateOccurringRule Method
    In This Topic
    Adds the data occurring rule to the rule collection.
    Syntax
    'Declaration
     
    Public Function AddDateOccurringRule( _
       ByVal type As DateOccurringType, _
       ByVal style As StyleInfo, _
       ByVal ParamArray ranges() As CellRange _
    ) As DateOccurringRule
    'Usage
     
    Dim instance As ConditionalFormat
    Dim type As DateOccurringType
    Dim style As StyleInfo
    Dim ranges() As CellRange
    Dim value As DateOccurringRule
     
    value = instance.AddDateOccurringRule(type, style, ranges)
    public DateOccurringRule AddDateOccurringRule( 
       DateOccurringType type,
       StyleInfo style,
       params CellRange[] ranges
    )

    Parameters

    type
    The DateOccurringType data occurring type.
    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 data occurring rule.
    Example
    This example creates a date occurring rule.
    See Also