---
title: "GrayScaleColor..::.Equals Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_GrayScaleColor_Equals_1_d02429b3.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# GrayScaleColor.Equals Method 
 
Compares this [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md) with specified object.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overrides Function Equals ( _obj As Object _
) As Boolean
```
 
```csharp
public override bool Equals(Object obj
)
```
 
### Parameters
 
 - obj
     - Type: [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
The [Object](http://msdn2.microsoft.com/en-us/e5kfa45b) to compare with the current [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md). If actual type of this argument is other than [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md), exception will be raised.
 
### Return Value
Value specifying if given object represents the same color value as this [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md).
   
## See Also

### Reference

- [GrayScaleColor Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
