1 write to SnapLineType
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\SnapLine.cs (1)
63
SnapLineType
= type;
16 references to SnapLineType
System.Windows.Forms.Design (10)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (4)
229
if (validTarget && !_targetSnapLineTypes.Contains(snapLine.
SnapLineType
))
231
_targetSnapLineTypes.Add(snapLine.
SnapLineType
);
236
if (validTarget && !_targetSnapLineTypes.Contains(snapLine.
SnapLineType
))
936
else if (snapLine.
SnapLineType
== SnapLineType.Baseline)
System\Windows\Forms\Design\Behavior\SnapLine.cs (5)
79
public bool IsHorizontal =>
SnapLineType
is SnapLineType.Top
87
public bool IsVertical =>
SnapLineType
is SnapLineType.Left
120
if (line1.
SnapLineType
!= line2.
SnapLineType
)
181
return $"SnapLine: {{type = {
SnapLineType
}, offset = {Offset}, priority = {Priority}, filter = {Filter ?? "<null>"}}}";
System\Windows\Forms\Design\LabelDesigner.cs (1)
81
if (snapLine is not null && snapLine.
SnapLineType
== (rtl ? SnapLineType.Right : SnapLineType.Left))
System.Windows.Forms.Design.Tests (6)
System\Windows\Forms\Design\Behavior\SnapLineTests.cs (4)
20
Assert.Equal(SnapLineType.Baseline, snapLine.
SnapLineType
);
31
Assert.Equal(SnapLineType.Baseline, snapLine.
SnapLineType
);
42
Assert.Equal(SnapLineType.Baseline, snapLine.
SnapLineType
);
53
Assert.Equal(SnapLineType.Baseline, snapLine.
SnapLineType
);
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (1)
57
SnapLine? baselineSnapLine = snapLines.Cast<SnapLine>().FirstOrDefault(sl => sl.
SnapLineType
== SnapLineType.Baseline);
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (1)
57
SnapLine? baselineSnapLine = snapLines.FirstOrDefault(sl => sl.
SnapLineType
== SnapLineType.Baseline);