FontFamily.GetTypefaces 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
返回 Typeface 对象的集合,这些对象表示默认的系统字体位置中的字体。
public:
System::Collections::Generic::ICollection<System::Windows::Media::Typeface ^> ^ GetTypefaces();
[System.CLSCompliant(false)]
public System.Collections.Generic.ICollection<System.Windows.Media.Typeface> GetTypefaces ();
[<System.CLSCompliant(false)>]
member this.GetTypefaces : unit -> System.Collections.Generic.ICollection<System.Windows.Media.Typeface>
Public Function GetTypefaces () As ICollection(Of Typeface)
返回
ICollection<T> 对象的 Typeface。
- 属性
示例
// 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()