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 (in ShellBrowser.dll) Version: 7.1
public static bool SameColor(
	this Color pColor1,
	Color pColor2


Type: System.DrawingColor
The first color.
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