有没有办法从C#CultureInfo获取标志图像? [英] Is there a way to get a flag image from a C# CultureInfo?
问题描述
如果我有一个CultureInfo
实例,是否有任何简单的方法—内置,通过框架或通过操作系统—获得匹配该文化的匹配标志"图标?这样可以避免创建单独的查找.
If I have a CultureInfo
instance, is there any simple way — built-in, through a framework or via the OS — to obtain a matching "flag" icon matching that culture? This would avoid having to create a separate lookup.
I couldn't find a member function to do the job in the documentation for CultureInfo
, but perhaps there is some other not-too-taxing approach that involves other .NET classes that I haven't found.
推荐答案
否.通过.NET框架或Windows操作系统,没有简单的内置方法来获取给定CultureInfo
实例的匹配标志"图标.
No. There is no simple, built-in way, through the .NET framework or the Windows operating system, to obtain a matching "flag" icon for a given CultureInfo
instance.
这篇关于有没有办法从C#CultureInfo获取标志图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!