Table of Contents

Property GuardFormulas

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

GuardFormulas

Gets or sets a value indicating whether a field that a spreadsheet would read as a formula is defused. Default false.

public bool GuardFormulas { get; set; }

Property Value

bool

Remarks

A CSV is plain text, but the application that opens it decides what a field is: one that begins with =, +, - or @ (or a tab or a carriage return) is run as a formula by Excel and others. When a sheet holds text that someone else typed and the CSV will be opened in a spreadsheet, set this: such a field is written with an apostrophe in front, which makes it text there. A number that only carries a sign (-5, +1.5E+3) is left as it is. It is off by default because the apostrophe is part of the field to every other reader.