Color.IsNamedColor Propiedad
Definición
Obtiene un valor que indica si esta estructura Color es un color con nombre o un miembro de la enumeración KnownColor.Gets a value indicating whether this Color structure is a named color or a member of the KnownColor enumeration.
public:
property bool IsNamedColor { bool get(); };
public bool IsNamedColor { get; }
member this.IsNamedColor : bool
Public ReadOnly Property IsNamedColor As Boolean
Valor de propiedad
Es true
si esta estructura Color se ha creado mediante el método FromName(String) o el método FromKnownColor(KnownColor); de lo contrario, es false
.true
if this Color was created by using either the FromName(String) method or the FromKnownColor(KnownColor) method; otherwise, false
.
Comentarios
Esta propiedad no realiza una comparación de los valores ARGB.This property does not do a comparison of the ARGB values. Por lo tanto, cuando la IsNamedColor propiedad se aplica a una Color estructura que se crea mediante el FromArgb método, IsNamedColor devuelve false
, aunque el valor ARGB coincida con el valor ARGB de un color predefinido.Therefore, when the IsNamedColor property is applied to a Color structure that is created by using the FromArgb method, IsNamedColor returns false
, even if the ARGB value matches the ARGB value of a predefined color.