語言

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

適用於