Inline.FontWeight Property

Gets or sets the top-level font weight to select from the font family for the content in this element.

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

Syntax

'Declaration
Public Property FontWeight As FontWeight
    Get
    Set
'Usage
Dim instance As Inline
Dim value As FontWeight

value = instance.FontWeight

instance.FontWeight = value
public FontWeight FontWeight { get; set; }
<inline FontWeight="fontWeightsValue"/>

XAML Values

  • fontWeightsValue
    A FontWeights property name, such as Light, Normal, or UltraBold.

Property Value

Type: System.Windows.FontWeight
One of the FontWeights property values, specifying the font weight. The default is Normal.

Remarks

Dependency property identifier field: FontWeightProperty

This property can select only from fonts that already exist in a font family. It does not programmatically create alternative weights, except when a family contains a regular weight and no bold weight. In this case, Silverlight simulates a bold weight by increasing the width of strokes using a 2D graphic algorithm.

Version Information

Silverlight

Supported in: 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0

Platforms

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

See Also

Reference

Inline Class

System.Windows.Documents Namespace

FontFamily

FontSize

FontStretch

FontStyle

Other Resources

Text and Fonts