1.Label1.caption:='liquanhai'+#13#10+'liquanhai'; 注意:label1的autosize必须为true;在默认下也为true.
2.label1.Caption:='liquanhai'+chr(13)+chr(10)+'liquanhai';
2.memo1.Lines.Add('liquanhai'+#13#10+'liquanhai');
本文介绍在Delphi开发环境中如何利用Label和Memo控件显示换行文本。通过具体示例展示了设置Label的Caption属性以及使用Memo的Lines.Add方法来实现文本的换行显示,并强调了Label控件的AutoSize属性的重要性。
1.Label1.caption:='liquanhai'+#13#10+'liquanhai'; 注意:label1的autosize必须为true;在默认下也为true.
2.label1.Caption:='liquanhai'+chr(13)+chr(10)+'liquanhai';
2.memo1.Lines.Add('liquanhai'+#13#10+'liquanhai');
4745
2万+

被折叠的 条评论
为什么被折叠?