共用方式為


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

適用於