Page tree
    Created with Raphaël 2.1.0
    Loading...
Skip to end of metadata
Go to start of metadata

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)"
  • No labels