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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.