FontFamily.FamilyTypefaces Property

Gets a collection of typefaces for the FontFamily object.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

'Declaration
Public ReadOnly Property FamilyTypefaces As FamilyTypefaceCollection
<object>
  <object.FamilyTypefaces>
    <OneOrMoreFontFamilyTypefaces/>
  </object.FamilyTypefaces>
</object>

XAML Values

OneOrMoreFontFamilyTypefaces

One or more of typefaces for the FontFamily object.

Property Value

Type: System.Windows.Media.FamilyTypefaceCollection
A FamilyTypefaceCollection that represents a collection of typefaces for the FontFamily object.

			' 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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft