SnapLine.ShouldSnap(SnapLine, SnapLine) Méthode

Définition

Retourne une valeur indiquant si l’élément spécifié SnapLine doit s’aligner sur un autre 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

Paramètres

line1
SnapLine

SnapLineSpécifié .

line2
SnapLine

Auquel SnapLine le composant spécifié SnapLine est censé s’aligner.

Retours

true si line1 elle doit s’aligner sur line2; sinon, false.

S’applique à