Tag: delphi 10 seattle

自定义属性只触发读取语句

所以,我正在尝试做一个组件来完成设置excel,libreoffice等单元的设置。 起初,我只是想设置的价值,但现在,我需要改变单元格的背景颜色,改变字体名称,风格,设置公式等等。所以,我决定做一个types,将举行所有我想改变的东西,所以我做了这个: type TMyCell = class private FBgColor: TColor; FValue: String; FFormula: String; FFormat: String; FFont: TFont; public constructor Create; destructor Destroy; property Value: String read FValue write FValue; property Formula: String read FFormula write FFormula; property Format: String read FFormat write FFormat; property BgColor: TColor read FBgColor write FBgColor; property Font: TFont read FFont […]