FontFamily.FamilyTypefaces 속성

정의

FontFamily 개체에 대한 서체의 컬렉션을 가져옵니다.

public:
 property System::Windows::Media::FamilyTypefaceCollection ^ FamilyTypefaces { System::Windows::Media::FamilyTypefaceCollection ^ get(); };
public System.Windows.Media.FamilyTypefaceCollection FamilyTypefaces { get; }
member this.FamilyTypefaces : System.Windows.Media.FamilyTypefaceCollection
Public ReadOnly Property FamilyTypefaces As FamilyTypefaceCollection

속성 값

FamilyTypefaceCollection

FamilyTypefaceCollection 개체에 대한 서체의 컬렉션을 나타내는 FontFamily입니다.

예제

// Return the font family for the selected font name.
FontFamily fontFamily = new FontFamily("Arial Narrow");

// Return the family typeface collection for the font family.
FamilyTypefaceCollection familyTypefaceCollection = fontFamily.FamilyTypefaces;

// Enumerate the family typefaces in the collection.
foreach (FamilyTypeface typeface in familyTypefaceCollection)
{
    // Add the typeface style values to the styles combo box.
    comboBoxStyles.Items.Add(typeface.Style);
}

comboBoxStyles.SelectedIndex = 0;
' Return the font family for the selected font name.
Dim fontFamily As New FontFamily("Arial Narrow")

' Return the family typeface collection for the font family.
Dim familyTypefaceCollection As FamilyTypefaceCollection = fontFamily.FamilyTypefaces

' Enumerate the family typefaces in the collection.
For Each typeface As FamilyTypeface In familyTypefaceCollection
    ' Add the typeface style values to the styles combo box.
    comboBoxStyles.Items.Add(typeface.Style)
Next typeface

comboBoxStyles.SelectedIndex = 0

설명

XAML 속성 요소 사용

<object>  
  <object.FamilyTypefaces>  
    <OneOrMoreFontFamilyTypefaces/>  
  </object.FamilyTypefaces>  
</object>  

XAML 값

OneOrMoreFontFamilyTypefaces
에 대 한 서체의 하나 이상의 FontFamily 개체입니다.

적용 대상