FontFamily.FamilyNames Property


Gets a collection of strings and CultureInfo values that represent the font family names of the FontFamily object.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

Public ReadOnly Property FamilyNames As LanguageSpecificStringDictionary

Property Value

Type: System.Windows.Media.LanguageSpecificStringDictionary

A LanguageSpecificStringDictionary that represents the font family names.

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

.NET Framework
Available since 3.0
Return to top