FontFamily.FamilyNames プロパティ

定義

CultureInfo オブジェクトのフォント ファミリ名を表す文字列と 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

プロパティ値

フォント ファミリ名を表す LanguageSpecificStringDictionary

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

適用対象