## Color::operator==(const Color\&) const method


确定当前对象和指定的 [Color](../) 对象是否表示相同的颜色。

```cpp
bool System::Drawing::Color::operator==(const Color &r) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| r | const Color\& | 用于与当前对象比较的 [Color](../) 对象 |

### ReturnValue

如果当前对象和指定对象都表示相同的颜色则为 true，否则为 false

## 另见

* Class [Color](../)
* Class [Color](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Color::operator==(const std::nullptr_t\&) const method


始终返回 false。

```cpp
bool System::Drawing::Color::operator==(const std::nullptr_t &r) const
```

## 另见

* Class [Color](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
