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

適用於