![](/img/trans.png)
[英]How do you find the number of rows in a DataGrid using .net compact framework?
[英]How do you get the default system font in the .NET compact framework?
如何獲取特定設備使用的默認系統字體的Font
對象? 我注意到不同的設備有不同的分辨率和DPI,但我的一些控件有明確定義的字體。 我希望能夠在運行時獲取默認的系統字體(好像我從未更改控件上的Font
屬性)。
你看過System.Drawing.SystemFonts
嗎? 我認為它可能有你需要的東西。
https://msdn.microsoft.com/en-us/library/system.drawing.systemfonts.aspx
編輯:我剛注意到CF標簽。 您需要查看注冊表以獲取系統字體信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.