GridLength.Equals 方法

定义

重载

Equals(Object)

确定指定对象是否与当前的 GridLength 实例相等。

Equals(GridLength)

确定指定的 GridLength 是否等同于当前的 GridLength

注解

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

Equals(Object)

确定指定对象是否与当前的 GridLength 实例相等。

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

要与当前实例进行比较的对象。

返回

Boolean

如果指定的对象具有与当前实例相同的值和 GridUnitType,则为 true;否则为 false

适用于

Equals(GridLength)

确定指定的 GridLength 是否等同于当前的 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
Public Function Equals (gridLength As GridLength) As Boolean

参数

gridLength
GridLength

要与当前实例进行比较的 GridLength 结构。

返回

Boolean

如果指定的 GridLength 具有与当前实例相同的值和 GridUnitType,则为 true;否则为 false

注解

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

适用于