FontFamily.FamilyNames Proprietà

Definizione

Ottiene un insieme di stringhe e di valori CultureInfo che rappresentano i nomi di famiglia di caratteri dell'oggetto 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

Valore della proprietà

LanguageSpecificStringDictionary

Oggetto LanguageSpecificStringDictionary che rappresenta i nomi delle famiglie di caratteri.

Esempio

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

Si applica a