Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Conditional Namespace / ConditionalObjects<TItem,TObject,TExecutedResult> Class / Add Method / Add(Reference,TItem,Boolean) Method
A GrapeCity.CalcEngine.RangeReference indicates the cell range to apply new TItem item.
The TItem 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,TItem,Boolean) Method
    In This Topic
    Applies new TItem item for the specified cell range.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function Add( _
       ByVal rangeRef As Reference, _
       ByVal item As TItem, _
       Optional ByVal replacing As Boolean _
    ) As Boolean
    'Usage
     
    
    Dim instance As ConditionalObjects(Of TItem,TObject,TExecutedResult)
    Dim rangeRef As Reference
    Dim item As TItem
    Dim replacing As Boolean
    Dim value As Boolean
     
    value = instance.Add(rangeRef, item, replacing)
    public virtual bool Add( 
       Reference rangeRef,
       TItem item,
       bool replacing
    )

    Parameters

    rangeRef
    A GrapeCity.CalcEngine.RangeReference indicates the cell range to apply new TItem item.
    item
    The TItem 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 TItem object is applied successful, false otherwise.
    See Also