# Color.Inequality(Color, Color)Color.Inequality(Color, Color)Color.Inequality(Color, Color)Color.Inequality(Color, Color) Operator

## 定義

2 つの Color 構造体が異なるかどうかをテストします。Tests whether two Color structures are not identical.

``````public:
static bool operator !=(System::Windows::Media::Color color1, System::Windows::Media::Color color2);``````
``public static bool operator != (System.Windows.Media.Color color1, System.Windows.Media.Color color2);``
``static member op_Inequality : System.Windows.Media.Color * System.Windows.Media.Color -> bool``
``Public Shared Operator != (color1 As Color, color2 As Color) As Boolean``

#### パラメーター

color1
Color Color Color Color

color2
Color Color Color Color

#### 戻り値

`color1``color2` が等しくない場合は `true`。それ以外の場合は `false``true` if `color1` and `color2` are not equal; otherwise, `false`.

## 注釈

AreCloseメソッドが返すことによってこの浮動小数点算術エラーを補正するあいまい等値アルゴリズムを使用して`true`2 つの比較についてColor構造とほとんど変わりませんが、値が異なる場合があります、わずかな量です。The AreClose method uses a fuzzy equality algorithm that compensates for this floating-point arithmetic error by returning `true` for a comparison of two Color structures that are practically identical, but whose values may differ by a minuscule amount.

この演算子を同等のメソッドは、します。 Color.Equals(Color, Color)The equivalent method for this operator is Color.Equals(Color, Color)