TextPatternIdentifiers.FontWeightAttribute 字段

定义

FontWeight标识文本范围的属性。

public: static initonly System::Windows::Automation::AutomationTextAttribute ^ FontWeightAttribute;
public static readonly System.Windows.Automation.AutomationTextAttribute FontWeightAttribute;
 staticval mutable FontWeightAttribute : System.Windows.Automation.AutomationTextAttribute
Public Shared ReadOnly FontWeightAttribute As AutomationTextAttribute 

字段值

注解

指字体的相对笔划、粗细或粗细。

这是在 GDI LOGFONT 中的字段之后 lfWeight 建模的。 为了一致性,LOGFONT 采用了以下值:0=DontCare、100=Thin、200=ExtraLight 或 UltraLight、300=Light、400=Normal 或 Regular、500=Medium、600=SemiBold 或 DemiBold、700=Bold、800=ExtraBold 或 UltraBold,900=Heavy 或 Black。

UI 自动化提供程序使用此标识符。 UI 自动化客户端应用程序应使用 TextPattern 中的等效字段。

此属性的值的类型 Int32

默认值为 zero

适用于

另请参阅