Share via


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 

欄位值

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。

消費者介面自動化提供者會使用此識別碼。 消費者介面自動化用戶端應用程式應該使用 中的 TextPattern 對等欄位。

此屬性的值的類型為 Int32

預設值是 zero

適用於

另請參閱