Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / FormatConditions Class / Add Method / Add(Reference,CfRule,Boolean) Method
A Reference indicates the cell range to apply new CfRule item.
The CfRule object to apply for the specified range.
if set to true, all items, which belong to the specified range, will be clear.


In This Topic
    Add(Reference,CfRule,Boolean) Method
    In This Topic
    Applies new TItem item for the specified cell range.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides NotOverridable Function Add( _
       ByVal rangeRef As Reference, _
       ByVal item As CfRule, _
       Optional ByVal replacing As Boolean _
    ) As Boolean
    'Usage
     
    
    Dim instance As FormatConditions
    Dim rangeRef As Reference
    Dim item As CfRule
    Dim replacing As Boolean
    Dim value As Boolean
     
    value = instance.Add(rangeRef, item, replacing)
    public override bool Add( 
       Reference rangeRef,
       CfRule item,
       bool replacing
    )

    Parameters

    rangeRef
    A Reference indicates the cell range to apply new CfRule item.
    item
    The CfRule object to apply for the specified range.
    replacing
    if set to true, all items, which belong to the specified range, will be clear.

    Return Value

    true if the CfRule object is applied successful, false otherwise.
    See Also