GridLength.Equality(GridLength, GridLength) 运算符
定义
比较两个 GridLength 结构是否相等。Compares two GridLength structures for equality.
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 的第一个实例。The first instance of GridLength to compare.
- gl2
- GridLength
要比较的 GridLength 的第二个实例。The second instance of GridLength to compare.
返回
如果两个 GridLength 实例具有相同的值和 GridUnitType,则为 true;否则为 false。true if the two instances of GridLength have the same value and GridUnitType; otherwise, false.
注解
此结构表示 Windows 运行时 (WinRT) 结构的 .NET 投影 GridLength 。This struct represents the .NET projection of the Windows Runtime (WinRT) GridLength struct. 有关详细信息,请参阅 UWP API 参考中的 GridLength 。For more information, see GridLength in the UWP API reference.