效果图
参考
组件
使用快捷键:alt+字符
加粗
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
if CheckBox1.Checked then
Memo1.Font.Style:=Memo1.Font.Style+[fsBold] //文本加粗
else
Memo1.Font.Style:=Memo1.Font.Style-[fsBold]
end;
倾斜
procedure TForm1.CheckBox2Click(Sender: TObject);
begin
if CheckBox2.Checked then
Memo1.Font.Style:=Memo1.Font.Style+[fsItalic] //文本倾斜
else
Memo1.Fo