GridLength.Equality(GridLength, GridLength) 运算符

定义

比较两个 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 的第二个实例。

返回

Boolean

如果两个 GridLength 实例具有相同的值和 GridUnitType,则为 true;否则为 false

适用于

另请参阅