Επεξεργασία

Κοινή χρήση μέσω


Fonts Class

Definition

Provides enumeration support for FontFamily and Typeface objects.

public ref class Fonts abstract sealed
public static class Fonts
type Fonts = class
Public Class Fonts
Inheritance
Fonts

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.

Fonts
Example of typefaces that are "Times New Roman" font family members

Properties

SystemFontFamilies

Gets the collection of FontFamily objects from the default system font location.

SystemTypefaces

Gets the collection of Typeface objects from the default system font location.

Methods

GetFontFamilies(String)

Returns the collection of FontFamily objects from a string value that represents the location of the fonts.

GetFontFamilies(Uri, String)

Returns a collection of FontFamily objects using a base uniform resource identifier (URI) value to resolve the font location.

GetFontFamilies(Uri)

Returns a collection of FontFamily objects from a uniform resource identifier (URI) value that represents the location of the fonts.

GetTypefaces(String)

Returns the collection of Typeface objects from a string value that represents the font directory location.

GetTypefaces(Uri, String)

Returns a collection of Typeface objects using a base uniform resource identifier (URI) value to resolve the font location.

GetTypefaces(Uri)

Returns a collection of Typeface objects from a uniform resource identifier (URI) value that represents the font location.

Applies to

See also