GridLength.Equals 方法

定義

多載

Equals(Object)

判斷指定的物件和目前的 GridLength 執行個體是否相等。Determines whether the specified object is equal to the current GridLength instance.

Equals(GridLength)

判斷指定的 GridLength 是否等於目前的 GridLengthDetermines whether the specified GridLength is equal to the current GridLength.

備註

這個結構代表 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.

Equals(Object)

判斷指定的物件和目前的 GridLength 執行個體是否相等。Determines whether the specified object is equal to the current GridLength instance.

public:
 override bool Equals(System::Object ^ oCompare);
public override bool Equals (object oCompare);
override this.Equals : obj -> bool
Public Overrides Function Equals (oCompare As Object) As Boolean

參數

oCompare
Object

要與目前執行個體比較的物件。The object to compare with the current instance.

傳回

如果指定的物件與目前執行個體具有相同的值和 GridUnitType 則為 true,否則為 falsetrue if the specified object has the same value and GridUnitType as the current instance; otherwise, false.

Equals(GridLength)

判斷指定的 GridLength 是否等於目前的 GridLengthDetermines whether the specified GridLength is equal to the current GridLength.

public:
 bool Equals(Windows::UI::Xaml::GridLength gridLength);
public bool Equals (Windows.UI.Xaml.GridLength gridLength);
override this.Equals : Windows.UI.Xaml.GridLength -> bool

參數

gridLength
GridLength

要與目前執行個體比較的 GridLength 結構。The GridLength structure to compare with the current instance.

傳回

如果指定的 GridLength 與目前執行個體具有相同的值和 GridUnitType,則為 true,否則為 falsetrue if the specified GridLength has the same value and GridUnitType as the current instance; 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.

適用於