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)

适用于