共用方式為


FontWeight.Equality(FontWeight, FontWeight) 運算子

定義

比較 FontWeight 的兩個執行個體是否相等。

public:
 static bool operator ==(System::Windows::FontWeight left, System::Windows::FontWeight right);
public static bool operator == (System.Windows.FontWeight left, System.Windows.FontWeight right);
static member ( = ) : System.Windows.FontWeight * System.Windows.FontWeight -> bool
Public Shared Operator == (left As FontWeight, right As FontWeight) As Boolean

參數

left
FontWeight

要比較的第一個 FontWeight 執行個體。

right
FontWeight

要比較的第二個 FontWeight 執行個體。

傳回

Boolean

如果 FontWeight 的執行個體相等,則為 true;否則為 false

適用於