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应对齐到的项。

返回

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

适用于