Share via


GridLength.Equality(GridLength, GridLength) 演算子

定義

2 つの GridLength 構造体を比較して、等しいかどうかを確認します。

public:
 static bool operator ==(System::Windows::GridLength gl1, System::Windows::GridLength gl2);
public static bool operator == (System.Windows.GridLength gl1, System.Windows.GridLength gl2);
static member ( = ) : System.Windows.GridLength * System.Windows.GridLength -> bool
Public Shared Operator == (gl1 As GridLength, gl2 As GridLength) As Boolean

パラメーター

gl1
GridLength

比較する GridLength の最初のインスタンスです。

gl2
GridLength

比較する GridLength の 2 番目のインスタンスです。

戻り値

Boolean

GridLength の 2 つのインスタンスが同じ値を持ち、GridUnitType を持つ場合は true。それ以外の場合は false

適用対象

こちらもご覧ください