FontFamily.GetTypefaces Methode

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt eine Auflistung von Typeface-Objekten zurück, die die Schrifttypen am Speicherort für Systemstandardschriftarten darstellen.Returns a collection of Typeface objects that represent the type faces in the default system font location.

public:
 System::Collections::Generic::ICollection<System::Windows::Media::Typeface ^> ^ GetTypefaces();
[System.CLSCompliant(false)]
public System.Collections.Generic.ICollection<System.Windows.Media.Typeface> GetTypefaces ();
member this.GetTypefaces : unit -> System.Collections.Generic.ICollection<System.Windows.Media.Typeface>
Public Function GetTypefaces () As ICollection(Of Typeface)

Gibt zurück

Attribute

Beispiele

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

// Return the collection of typefaces for the font family.
System.Collections.Generic.ICollection<Typeface> typefaces = fontFamily.GetTypefaces();
' Return the font family for the selected font name.
Dim fontFamily As New FontFamily("Palatino Linotype")

' Return the collection of typefaces for the font family.
Dim typefaces As System.Collections.Generic.ICollection(Of Typeface) = fontFamily.GetTypefaces()

Gilt für: