SnapLine.ShouldSnap(SnapLine, SnapLine) Metod

Definition

Returnerar ett värde som anger om den angivna SnapLine ska fästas på en annan 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

Parametrar

line1
SnapLine

Den angivna SnapLine.

line2
SnapLine

Den SnapLine som den angivna SnapLine förväntas fästas till.

Returer

trueom line1 ska fästas på line2, annars . false

Gäller för