TextPatternIdentifiers.FontWeightAttribute Field
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Identifies the FontWeight attribute of a text range.
Namespace: System.Windows.Automation
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Public Shared ReadOnly FontWeightAttribute As AutomationTextAttribute
public static readonly AutomationTextAttribute FontWeightAttribute
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.