FontFamily.FamilyNames 属性

定义

获取表示 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

一个表示字体系列名称的 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.
'}

适用于