FontFamily.FamilyNames Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection of strings and CultureInfo values that represent the font family names of the FontFamily object.
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
Property Value
A LanguageSpecificStringDictionary that represents the font family names.
Examples
// 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.
'}
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.