Font Element

Specifies the font of an object.

Syntax

<Font
    FontName="string"
    FontSize="float"
    FontStyle="{Bold | Italic | None}"
/>

Inline Syntax

  Font="FontName"
Font="FontName,FontSize"
Font="FontName,FontSize,FontStyle"

Attributes

FontName

Contains the font face name.

FontSize

Specifies the size of the font, in points. Points are relative to 96 dots per inch (dpi).

FontStyle

Specifies the style of the font, which must be a member of the FontStyles enumeration. You can also include multiple styles by separating them with a comma (for example, FontStyle="Bold,Italic").

Requirements

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also