FontWeight.LessThan(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 執行個體。

傳回

如果 left 小於 right,則為 true;否則為 false

備註

較輕的字型粗細小於較重的字型粗細。 例如,「Light」 或 「Normal」 字型粗細小於 「UltraBold」 字型粗細。

適用於