TextPatternIdentifiers.ForegroundColorAttribute 字段

定义

标识文本范围的 ForegroundColor (COLORREF) 属性。Identifies the ForegroundColor (COLORREF) attribute of a text range.

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 

字段值

注解

前景颜色等效于文本或字体颜色。Foreground color is equivalent to the text or font color.

此标识符由 UI 自动化提供程序使用。This identifier is used by UI Automation providers. UI 自动化客户端应用程序应在中TextPattern使用等效字段。UI Automation client applications should use the equivalent field in TextPattern.

此属性的值为类型Int32Values for this attribute are of type Int32.

默认值为null引用 (Nothing在 Visual Basic 中)。The default value is a null reference (Nothing in Visual Basic).

适用于

另请参阅