FontWeightAttribute Field

TextPatternIdentifiers.FontWeightAttribute Field

Identifies the FontWeight attribute of a text range.

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

public static readonly AutomationTextAttribute FontWeightAttribute

Refers to the relative stroke, thickness, or boldness of a font.

For consistency, this field and its values are modeled after the lfWeight field in GDI LOGFONT. The following values were adopted from LOGFONT: 0=DontCare; 100=Thin; 200=ExtraLight or UltraLight; 300=Light; 400=Normal or Regular; 500=Medium; 600=SemiBold or DemiBold; 700=Bold; 800=ExtraBold or UltraBold; and 900=Heavy or Black.

The values for this attribute are of type Int32.


Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

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

Community Additions

© 2016 Microsoft