語言

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 

欄位值

備註

指的是字體的筆劃、粗細或粗口度。

這是以 lfWeight GDI LOGFONT 中的欄位為模型。 為了保持一致,以下數值採用了 LOGFONT:0=DontCare,100=薄型,200=超輕或超輕,300=輕,400=一般或一般,500=中等,600=半粗或半粗,700=粗體,800=超粗或超粗,900=重或黑色。

此識別碼由 使用者介面自動化 提供者使用。 使用者介面自動化客戶端應用程式應該使用TextPattern 中的等效欄位。

此屬性的值型別為 Int32。

預設值為 zero。

適用於

另請參閱