Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLSheet Class / CopyFormula Method
The row index of a source cell with exist formula.
The column index of a source cell with exist formula.
The row index of a destination cell for copies the formula.
The column index of a destination cell for copies the formula.

In This Topic
    CopyFormula Method (XLSheet)
    In This Topic
    Copies the formula from a source cell to a destination cell, adjusting relative references.
    Syntax
    'Declaration
     
    
    Public Sub CopyFormula( _
       ByVal rowFrom As Integer, _
       ByVal colFrom As Integer, _
       ByVal rowTo As Integer, _
       ByVal colTo As Integer _
    ) 
    public void CopyFormula( 
       int rowFrom,
       int colFrom,
       int rowTo,
       int colTo
    )

    Parameters

    rowFrom
    The row index of a source cell with exist formula.
    colFrom
    The column index of a source cell with exist formula.
    rowTo
    The row index of a destination cell for copies the formula.
    colTo
    The column index of a destination cell for copies the formula.
    See Also