FontStretch.Compare(FontStretch, FontStretch) 方法

定义

比较两个 FontStretch 对象实例。

public:
 static int Compare(System::Windows::FontStretch left, System::Windows::FontStretch right);
public static int Compare(System.Windows.FontStretch left, System.Windows.FontStretch right);
static member Compare : System.Windows.FontStretch * System.Windows.FontStretch -> int
Public Shared Function Compare (left As FontStretch, right As FontStretch) As Integer

参数

left
FontStretch

要比较的第一个 FontStretch 对象。

right
FontStretch

要比较的第二个 FontStretch 对象。

返回

一个 Int32 值,表示两个 FontStretch实例之间的关系。

注解

当返回值小于零时, left 小于 right。 如果此值为零,则表示两个操作数相等。 当该值大于零时,它表示 left 大于 right

适用于