FontWeight.LessThanOrEqual(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

注解

较轻的字体粗细小于较重的字体粗细。 例如,“浅色”或“普通”字体粗细小于“UltraBold”字体粗细。

适用于