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.0
Syntaxpublic static bool SameColor(
this Color pColor1,
Color pColor2
)
<ExtensionAttribute>
Public Shared Function SameColor (
pColor1 As Color,
pColor2 As Color
) As Boolean
public:
[ExtensionAttribute]
static bool SameColor(
Color pColor1,
Color pColor2
)
[<ExtensionAttribute>]
static member SameColor :
pColor1 : Color *
pColor2 : Color -> bool
Parameters
- pColor1
- Type: System.DrawingColor
The first color. - pColor2
- Type: System.DrawingColor
The second color.
Return Value
Type:
BooleanTrue 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