簡體   English   中英

使用C#獲取當前用戶的Windows資源管理器字體大小

[英]Get windows explorer font size of current user using C#

使用C#是否可行,還是我需要進行P /調用? 我當時想這是一種確定為ListView設置哪種字體大小的簡便方法。

檢查類SystemFonts下。 我認為您不需要更多的默認名稱空間。

例如:

string name = SystemFonts.IconTitleFont.FontFamily.Name;
float size = SystemFonts.IconTitleFont.Size;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM