Description
Sets or returns a cell formula. If no formula is associated with the cell, the property returns an empty string.
C#
public System.String Formula{ get ; set ; } |
vb.net
Public Property Formula() As String |
Examples
C#
//--- Get CellFormula string cf = cellA1.Formula; //--- Set CellFormula cellA1.Formula = "=SUM(A1:A2)" ; |
vb.net
'--- Get CellFormula Dim cf As string = cellA1.Formula '--- Set CellFormula oCell.Formula = "=SUM(A1:A2)" |