共用方式為


Margins.Equality(Margins, Margins) 運算子

定義

比較兩個 Margins,以判斷它們是否具有相同維度。

public:
 static bool operator ==(System::Drawing::Printing::Margins ^ m1, System::Drawing::Printing::Margins ^ m2);
public static bool operator == (System.Drawing.Printing.Margins m1, System.Drawing.Printing.Margins m2);
public static bool operator == (System.Drawing.Printing.Margins? m1, System.Drawing.Printing.Margins? m2);
static member ( = ) : System.Drawing.Printing.Margins * System.Drawing.Printing.Margins -> bool
Public Shared Operator == (m1 As Margins, m2 As Margins) As Boolean

參數

m1
Margins

要比較是否相等的第一個 Margins

m2
Margins

要比較是否相等的第二個 Margins

傳回

true 表示兩個邊界的 LeftRightTopBottom 屬性具有相同值,否則為 false

備註

這個運算子的對等方法為 Margins.Equals(Object)

適用於