GridLength.Equality(GridLength, GridLength) 操作员

定义

比较两个 GridLength 结构是否相等。

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

参数

gl1
GridLength

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

gl2
GridLength

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

返回

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

注解

此结构表示 Windows 运行时 (WinRT) GridLength 结构的 .NET 投影。 有关详细信息,请参阅 UWP API 参考中的 GridLength

适用于