TextPatternIdentifiers.ForegroundColorAttribute 欄位

定義

指出文字範圍的 ForegroundColor (COLORREF) 屬性。

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

欄位值

備註

前景色彩相當於文字或字型色彩。

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

這個屬性的值的類型為 Int32

預設值是 null 參考 (Visual Basic 中為 Nothing)。

適用於

另請參閱