共用方式為


GridLengthHelper.Equals(GridLength, GridLength) 方法

定義

提供兩個 GridLength 值的比較。 C# 程式碼應該改用 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

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

適用於

另請參閱