Click or drag to resize

ExtensionMethodsSameColor Method

A System.Drawing.Color extension method that checks if the passed color has the same color value (and doesn't take into account if it is e.g. a named color or not.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
public static bool SameColor(
	this Color pColor1,
	Color pColor2
)

Parameters

pColor1
Type: System.DrawingColor
The first color.
pColor2
Type: System.DrawingColor
The second color.

Return Value

Type: Boolean
True if ARGB values for both colors are the same, false if not.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Color. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also