共用方式為


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.
'}

適用於