首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

请问以下一句代码怎么翻译

2012-03-09 
请教以下一句代码如何翻译C# code this.Font new System.Drawing.Font(Microsoft Sans Serif, 12F, Sy

请教以下一句代码如何翻译

C# code
 this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));this.ResumeLayout(false);


翻译成delphi的??该如何翻译??

[解决办法]
一个delphifont的例子
font: TFont;
begin
font := TFont.Create;
font.Name := 'Microsoft Sans Serif';
//font.Style := [fsBold, fsItalic];
//font.Color := clblack;
font.Height := 72;
Canvas.Font := font;
Canvas.TextOut(10, 10, S);
font.Free;

[解决办法]
SuspendLayout 和 ResumeLayout 配合使用
类似于 先锁定界面 绘制界面 再解锁,防止闪烁

热点排行