FontFamily.FamilyNames 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取表示 CultureInfo 对象的字体系列名称的字符串和 FontFamily 值的集合。
public:
property System::Windows::Media::LanguageSpecificStringDictionary ^ FamilyNames { System::Windows::Media::LanguageSpecificStringDictionary ^ get(); };
public System.Windows.Media.LanguageSpecificStringDictionary FamilyNames { get; }
member this.FamilyNames : System.Windows.Media.LanguageSpecificStringDictionary
Public ReadOnly Property FamilyNames As LanguageSpecificStringDictionary
属性值
一个表示字体系列名称的 LanguageSpecificStringDictionary。
示例
// Return the dictionary for the font family names.
LanguageSpecificStringDictionary dictionary = fontFamily.FamilyNames;
// Return the current culture info.
CultureInfo cultureInfo = CultureInfo.CurrentCulture;
// Determine whether the dictionary contains the current culture info.
//if (dictionary.ContainsKey())
//{
// Font family contains the family name for the current culture info.
//}
' Return the dictionary for the font family names.
Dim dictionary As LanguageSpecificStringDictionary = fontFamily.FamilyNames
' Return the current culture info.
Dim cultureInfo As CultureInfo = CultureInfo.CurrentCulture
' Determine whether the dictionary contains the current culture info.
'if (dictionary.ContainsKey())
'{
' Font family contains the family name for the current culture info.
'}