GridLength.Inequality(GridLength, GridLength) 運算子

定義

比較兩個 GridLength 結構,判斷它們是否不相等。Compares two GridLength structures to determine if they are not equal.

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 op_Inequality : 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,否則為 falsetrue if the two instances of GridLength do not have the same value and GridUnitType; otherwise, false.

備註

這個結構代表 Windows 執行階段 (WinRT) GridLength結構的 .net 投射。This struct represents the .NET projection of the Windows Runtime (WinRT) GridLength struct. 如需詳細資訊, 請參閱 UWP API 參考中的GridLengthFor more information, see GridLength in the UWP API reference.

適用於