TextPatternIdentifiers.FontWeightAttribute Field

 

Identifies the FontWeight attribute of a text range.

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

public static readonly AutomationTextAttribute FontWeightAttribute

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

This is modeled after the lfWeight field in GDI LOGFONT. For consistency, the following values have been 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.

This identifier is used by UI Automation providers. UI Automation client applications should use the equivalent field in TextPattern.

Values for this attribute are of type Int32.

The default value is zero.

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: