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