Table of Contents

Property SearchNumbers

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

SearchNumbers

Gets or sets a value indicating whether a cell that holds a number, a date, a boolean or an error is searched, by the text it shows (DisplayText). Default true, which is what Excel's Find does when it looks in values: 1,234 finds 1234.5 shown as 1,234.50 and does not find it shown as 1234.5. False: only text is searched.

public bool SearchNumbers { get; set; }

Property Value

bool

Remarks

A replace in such a cell is made in the text it shows. The cell keeps its kind when the new text is what the cell's format shows for some value (1,234.50 to 1,299.50 is the number 1299.5); it becomes text when the new text is no number at all; and it is skipped, with the reason, when the new text reads as a number the format would show differently, since there is then no telling which was meant. A date is read back only in the ISO form (2026-11-17).