Color.IsSystemColor Color.IsSystemColor Color.IsSystemColor Color.IsSystemColor Property

定义

获取指示此 Color 结构是否为系统颜色的值。Gets a value indicating whether this Color structure is a system color. 系统颜色是指 Windows 显示元素中使用的颜色。A system color is a color that is used in a Windows display element. 系统颜色由 KnownColor 枚举的元素来表示。System colors are represented by elements of the KnownColor enumeration.

public:
 property bool IsSystemColor { bool get(); };
public bool IsSystemColor { get; }
member this.IsSystemColor : bool
Public ReadOnly Property IsSystemColor As Boolean

属性值

如果此 Color 是使用 FromName(String) 方法或 FromKnownColor(KnownColor) 方法基于系统颜色创建的,为 true;否则为 falsetrue if this Color was created from a system color by using either the FromName(String) method or the FromKnownColor(KnownColor) method; otherwise, false.

注解

此属性不会进行比较的 ARGB 值。This property does not do a comparison of the ARGB values. 因此,当IsSystemColor属性应用于Color通过使用创建结构FromArgb方法,IsSystemColor返回false,即使 argb 值与系统颜色的 ARGB 值匹配。Therefore, when the IsSystemColor property is applied to a Color structure that is created by using the FromArgb method, IsSystemColor returns false, even if the ARGB value matches the ARGB value of a system color.

适用于