Margins.Inequality(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 op_Inequality : 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)

适用于