//在 type 区写入:
  TMyClass = class
    property s: string;
  end;

//然后把光标放在其中,执行 Ctrl+Shift+C,可以自动生成以下代码:

  TMyClass = class
  private
    Fs: string;
    procedure Sets(const Value: string);
  published
    property s: string read Fs write Sets;
  end;


{ TMyClass }

procedure TMyClass.Sets(const Value: string);
begin
  Fs := Value;
end;

相关文章:

  • 2022-01-11
  • 2021-09-12
  • 2021-06-14
  • 2022-12-23
  • 2021-12-17
  • 2021-09-17
  • 2022-12-23
猜你喜欢
  • 2021-06-12
  • 2021-11-06
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案