FontSize.PIXELS c#等价物

Nig*_*ker 1 .net c# j# winforms

我有以下J#代码

bigFont = new Font("Arial", bigFontSize, FontSize.PIXELS);
Run Code Online (Sandbox Code Playgroud)

我如何将上面的行转换为c#FontSize.PIXELS等价物.

谢谢

Yah*_*hia 8

尝试

Font bigFont = new Font("Arial", bigFontSize, GraphicsUnit.Pixel);
Run Code Online (Sandbox Code Playgroud)

有关详细信息,请参阅MSDN.