共用方式為


Fonts Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides enumeration support for FontFamily and Typeface objects.

Inheritance Hierarchy

System.Object
  System.Windows.Media.Fonts

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public NotInheritable Class Fonts
public static class Fonts

The Fonts type exposes the following members.

Properties

  Name Description
Public propertyStatic memberSupported by Silverlight for Windows Phone SystemTypefaces Gets the collection of Typeface objects from the default system font location.

Top

Remarks

A font family is a set of fonts that have the same typeface, such as Arial, but that differ in features. These feature differences include style, such as italic, and weight, such as bold.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference