[英]Get windows explorer font size of current user using C#
Is this possible with C# or do I need to do P/Invoke? 使用C#是否可行,还是我需要进行P /调用? I was thinking it's an easy way to determine which font size to set for my ListView.
我当时想这是一种确定为ListView设置哪种字体大小的简便方法。
Check under class SystemFonts. 检查类SystemFonts下。 I don't think you need more than the default namespaces for this.
我认为您不需要更多的默认名称空间。
for example: 例如:
string name = SystemFonts.IconTitleFont.FontFamily.Name;
float size = SystemFonts.IconTitleFont.Size;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.