←Select platform

GetKnownColor Method

Summary
Gets the known color enumeration member that matches this color ARGB value.
Syntax
C#
VB
C++
[CLSCompliantAttribute(false)] 
public RasterKnownColor GetKnownColor() 
<CLSCompliantAttribute(False)> 
Public Function GetKnownColor() As RasterKnownColor 
[CLSCompliantAttribute(false)] 
public: 
RasterKnownColor GetKnownColor();  

Return Value

An RasterKnownColor enumeration member that matches this color ARGB value. If the color ARGB value does not match any known color, RasterKnownColor.Black is returned.

Remarks

This method does a comparison of the ARGB values. Therefore, the GetKnownColor method might return a valid RasterKnownColor enumeration member even if this RasterColor was no creating using the FromKnownColor method.

To check whether this RasterColor has a matching RasterKnownColor, use IsKnownColor.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.