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


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

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


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

### ReturnValue

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

## 另见

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


始终返回 true。

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

## 另见

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