TextPatternIdentifiers.FontWeightAttribute Field

Definition

Identifies the FontWeight attribute of a text range.

public static readonly System.Windows.Automation.AutomationTextAttribute FontWeightAttribute;

Field Value

Remarks

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.

Applies to

Produk Versi
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also