Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Sets or returns a cell formula. If no formula is associated with the cell, the property returns an empty string.

Signature
C#
C#
 public System.String Formula{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property Formula() As String
{signature}
{example}{code:csharp|title=C#}
Example
Code Block
csharp
csharp
titleC#


          //--- Get CellFormula
          string cf = cellA1.Formula;

          //--- Set CellFormula
          cellA1.Formula = "=SUM(A1:A2)";
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Get CellFormula
          Dim cf As string = cellA1.Formula

          '--- Set CellFormula
          oCell.Formula = "=SUM(A1:A2)"
        
{code} {example} {scrollbar}
Scrollbar