C1.Xaml.Excel Assembly > C1.Xaml.Excel Namespace > C1XLBook Class : KeepFormulas Property |
'Declaration Public Property KeepFormulas As System.Boolean
'Usage Dim instance As C1XLBook Dim value As System.Boolean instance.KeepFormulas = value value = instance.KeepFormulas
public System.bool KeepFormulas {get; set;}
Setting this property to true allows you to load existing XLS/XLSX files, modify the values in some cells, and save the file preserving the formulas. This is the default setting.
Setting this property to false causes the component to remove the formulas in the book when it is loaded. Saving the file in this case will retain the last calculated values but will remove the formulas.
Assigning any value to a cell will clear the formula in the cell.