ServiceHealthSection.ForegroundColor 属性

定义

获取或设置该部分的前景色。Gets or sets the foreground color of the section.

public:
 property System::String ^ ForegroundColor { System::String ^ get(); void set(System::String ^ value); };
public string ForegroundColor { get; set; }
member this.ForegroundColor : string with get, set
Public Property ForegroundColor As String

属性值

String

一个字符串,表示部分的前景色。A string that represents the foreground color of the section.

例外

设置操作中的字符串为 nullEmpty,或仅由空白字符组成。The string in a set operation is null, Empty, or consists only of whitespace characters.

注解

属性的值 ForegroundColor 是一个十六进制颜色字符串。The value of the ForegroundColor property is a hexadecimal color string. 默认值为 "#000000" 或 Color.BlackThe default value is "#000000", or Color.Black.

适用于