GridLength.Inequality(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 op_Inequality : System.Windows.GridLength * System.Windows.GridLength -> bool
Public Shared Operator != (gl1 As GridLength, gl2 As GridLength) As Boolean

参数

gl1
GridLength

要比较的 GridLength 的第一个实例。

gl2
GridLength

要比较的 GridLength 的第二个实例。

返回

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

适用于

另请参阅