Sdílet prostřednictvím


FontFamily.FamilyNames Vlastnost

Definice

Získá kolekci řetězců a CultureInfo hodnot, které představují názvy rodin písem objektu 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

Hodnota vlastnosti

LanguageSpecificStringDictionary

A LanguageSpecificStringDictionary , který představuje jména rodiny písem.

Příklady

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

Platí pro