語言

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。

適用於