SnapLine.ShouldSnap(SnapLine, SnapLine) 方法

定义

返回一个值,该值指示指定的 SnapLine 是否应与另一 SnapLine 对齐。

public:
 static bool ShouldSnap(System::Windows::Forms::Design::Behavior::SnapLine ^ line1, System::Windows::Forms::Design::Behavior::SnapLine ^ line2);
public static bool ShouldSnap (System.Windows.Forms.Design.Behavior.SnapLine line1, System.Windows.Forms.Design.Behavior.SnapLine line2);
static member ShouldSnap : System.Windows.Forms.Design.Behavior.SnapLine * System.Windows.Forms.Design.Behavior.SnapLine -> bool
Public Shared Function ShouldSnap (line1 As SnapLine, line2 As SnapLine) As Boolean

参数

line1
SnapLine

指定的 SnapLine

line2
SnapLine

SnapLine,指定的 SnapLine 应与其对齐。

返回

Boolean

如果 line1 应与 line2 对齐,则为 true;否则为 false

适用于