Bearbeiten

Freigeben über


SnapLine.ShouldSnap(SnapLine, SnapLine) Method

Definition

Returns a value indicating whether the specified SnapLine should snap to another 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

Parameters

line1
SnapLine

The specified SnapLine.

line2
SnapLine

The SnapLine to which the specified SnapLine is expected to snap.

Returns

true if line1 should snap to line2; otherwise, false.

Applies to