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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET