System::Drawing::Color::operator== 方法

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

确定当前对象和指定的 Color 对象是否表示相同的颜色。

bool System::Drawing::Color::operator==(const Color &r) const
参数类型描述
rconst Color&用于与当前对象比较的 Color 对象

ReturnValue

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

另见

Color::operator==(const std::nullptr_t&) const method

始终返回 false。

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

另见