HotXLS 文档

DisplayFormulas 属性

返回 or sets whether a classic XLS worksheet view displays formulas instead of formula results. Read/write Boolean

语法

property DisplayFormulas: Boolean;

备注

This property controls the worksheet view flag saved in the BIFF WINDOW2 record. It does not change formulas, cached values, or calculation behavior

示例

This example saves the worksheet so Excel opens it showing formula text

Workbook.Sheets[1].Range['A1', 'A1'].Formula := '=1+2';
Workbook.Sheets[1].DisplayFormulas := True;