GridLengthHelper.Equals(GridLength, GridLength) 方法

定義

提供兩個 GridLength 值的比較。 C# 和 Microsoft Visual Basic 程式碼應該改用 Equality 運算子或 GridLength.Equals 方法。

public:
 static bool Equals(GridLength target, GridLength value);
 static bool Equals(GridLength const& target, GridLength const& value);
public static bool Equals(GridLength target, GridLength value);
function equals(target, value)
Public Shared Function Equals (target As GridLength, value As GridLength) As Boolean

參數

target
GridLength

要比較的第一個 GridLength

value
GridLength

要比較的第二個 GridLength

傳回

Boolean

bool

如果兩個GridLength值保留相等值做為其結構值資訊,則為true;否則為false

適用於

另請參閱