FontStyle

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

Gets or sets the font style for the content in this element.

<object FontStyle="FontStyle"  .../>
value = object.FontStyle
object.FontStyle = value

Property Value

Type: FontStyle Enumeration

One of the enumeration values that specifies the desired font style.

This property is read/write. The default value is Normal.

Remarks

The characters in an italic font are truly slanted and appear as they were designed. They are not simulated by performing a shear transformation on the characters from a normal font.

NoteNote:

The FontStyle property value may not be the font style used during rendering because of font fallback. For example, if you specify the font style Italic, but Normal is the only font style available, the value of FontStyle is still Italic.

The "Applies To" section of this topic lists LineBreak, because it does exist in the object model and you can get and set it. However, all LineBreak properties are ignored for rendering purposes.

Applies To

LineBreak

Run

PasswordBox (Silverlight 2)

TextBlock

TextBox (Silverlight 2)