Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Silverlight
System.Windows
FontStyles Class
Collapse All/Expand All Collapse All
.NET Framework Class Library for Silverlight
FontStyles Class

Provides a set of predefined font styles as static property values.

System..::.Object
  System.Windows..::.FontStyles

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public NotInheritable Class FontStyles
C#
public static class FontStyles
XAML

See Remarks.

The FontStyles type exposes the following members.

  NameDescription
Public propertyStatic memberSupported by Silverlight for Windows PhoneItalicSpecifies an italic font style.
Public propertyStatic memberSupported by Silverlight for Windows PhoneNormalSpecifies a normal, or roman, font style.
Top

A font style refers to the slant of a font. Silverlight 5 implements Italic or Normal.

FontStyles Static Property Names

Font style

Description

Italic

The characters in an italic font are truly slanted and appear as they were designed.

Normal

The characters in a normal, or roman, font are upright.

WPF supports a FontStyles value of Oblique. Silverlight 5 does not support an Oblique value.

For more information on XAML usage, see FontStyle. FontStyle is the value type for Silverlight properties or attributes that specify a font style value, but you must use static properties of FontStyles to provide a FontStyle value. In XAML, you specify the name of a FontStyles property as the attribute value. This functionality is enabled by native XAML parsing behavior that processes the string value.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker