FontFamily.FamilyTypefaces プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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 オブジェクトのタイプフェイスのコレクションを表す 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
オブジェクトの 1 つ以上の書体 FontFamily 。