61 references to SnapLineType
System.Design (1)
src\winforms\artifacts\obj\System.Design.Facade\Release\net11.0\System.Design.Forwards.cs (1)
82[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Forms.Design.Behavior.SnapLineType))]
System.Windows.Forms.Design (60)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
41private readonly List<SnapLineType> _targetSnapLineTypes = []; 936else if (snapLine.SnapLineType == SnapLineType.Baseline)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (8)
164lines.Add(new SnapLine(SnapLineType.Bottom, loc.Y - 1)); 167lines.Add(new SnapLine(SnapLineType.Horizontal, loc.Y + _primaryControl.Margin.Bottom, SnapLine.MarginBottom, SnapLinePriority.Always)); 172lines.Add(new SnapLine(SnapLineType.Top, loc.Y)); 175lines.Add(new SnapLine(SnapLineType.Horizontal, loc.Y - _primaryControl.Margin.Top, SnapLine.MarginTop, SnapLinePriority.Always)); 181lines.Add(new SnapLine(SnapLineType.Right, loc.X - 1)); 184lines.Add(new SnapLine(SnapLineType.Vertical, loc.X + _primaryControl.Margin.Right, SnapLine.MarginRight, SnapLinePriority.Always)); 189lines.Add(new SnapLine(SnapLineType.Left, loc.X)); 192lines.Add(new SnapLine(SnapLineType.Vertical, loc.X - _primaryControl.Margin.Left, SnapLine.MarginLeft, SnapLinePriority.Always));
System\Windows\Forms\Design\Behavior\SnapLine.cs (12)
37public SnapLine(SnapLineType type, int offset) 45public SnapLine(SnapLineType type, int offset, string? filter) 53public SnapLine(SnapLineType type, int offset, SnapLinePriority priority) 61public SnapLine(SnapLineType type, int offset, string? filter, SnapLinePriority priority) 79public bool IsHorizontal => SnapLineType is SnapLineType.Top 80or SnapLineType.Bottom 81or SnapLineType.Horizontal 82or SnapLineType.Baseline; 87public bool IsVertical => SnapLineType is SnapLineType.Left 88or SnapLineType.Right 89or SnapLineType.Vertical; 104public SnapLineType SnapLineType { get; }
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (8)
231new(SnapLineType.Left, r.Left), 232new(SnapLineType.Right, r.Right), 233new(SnapLineType.Bottom, r.Bottom), 234new(SnapLineType.Top, r.Top), 235new(SnapLineType.Horizontal, r.Top - 4, SnapLine.MarginTop, SnapLinePriority.Always), 236new(SnapLineType.Horizontal, r.Bottom + 3, SnapLine.MarginBottom, SnapLinePriority.Always), 237new(SnapLineType.Vertical, r.Left - 4, SnapLine.MarginLeft, SnapLinePriority.Always), 238new(SnapLineType.Vertical, r.Right + 3, SnapLine.MarginRight, SnapLinePriority.Always)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
97snapLines.Add(new SnapLine(SnapLineType.Baseline, baseline, SnapLinePriority.Medium));
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
35snapLines.Add(new SnapLine(SnapLineType.Baseline, baseline, SnapLinePriority.Medium));
System\Windows\Forms\Design\ControlCommandSet.cs (6)
477lines.Add(new SnapLine(SnapLineType.Right, pt.X + primaryControl.Width - 1)); 478lines.Add(new SnapLine(SnapLineType.Vertical, pt.X + primaryControl.Width + primaryControl.Margin.Right, SnapLine.MarginRight, SnapLinePriority.Always)); 485lines.Add(new SnapLine(SnapLineType.Left, pt.X)); 486lines.Add(new SnapLine(SnapLineType.Vertical, pt.X - primaryControl.Margin.Left, SnapLine.MarginLeft, SnapLinePriority.Always)); 498lines.Add(new SnapLine(SnapLineType.Bottom, pt.Y + primaryControl.Height - 1)); 499lines.Add(new SnapLine(SnapLineType.Horizontal, pt.Y + primaryControl.Height + primaryControl.Margin.Bottom, SnapLine.MarginBottom, SnapLinePriority.Always));
System\Windows\Forms\Design\ControlDesigner.cs (8)
352snapLines.Add(new SnapLine(SnapLineType.Top, 0, SnapLinePriority.Low)); 353snapLines.Add(new SnapLine(SnapLineType.Bottom, height - 1, SnapLinePriority.Low)); 354snapLines.Add(new SnapLine(SnapLineType.Left, 0, SnapLinePriority.Low)); 355snapLines.Add(new SnapLine(SnapLineType.Right, width - 1, SnapLinePriority.Low)); 360snapLines.Add(new SnapLine(SnapLineType.Horizontal, -margin.Top, SnapLine.MarginTop, SnapLinePriority.Always)); 361snapLines.Add(new SnapLine(SnapLineType.Horizontal, margin.Bottom + height, SnapLine.MarginBottom, SnapLinePriority.Always)); 362snapLines.Add(new SnapLine(SnapLineType.Vertical, -margin.Left, SnapLine.MarginLeft, SnapLinePriority.Always)); 363snapLines.Add(new SnapLine(SnapLineType.Vertical, margin.Right + width, SnapLine.MarginRight, SnapLinePriority.Always));
System\Windows\Forms\Design\DateTimePickerDesigner.cs (1)
31snapLines.Add(new SnapLine(SnapLineType.Baseline, baseline, SnapLinePriority.Medium));
System\Windows\Forms\Design\LabelDesigner.cs (3)
60snapLines.Add(new SnapLine(SnapLineType.Baseline, baseline, SnapLinePriority.Medium)); 79if (snapLine is not null && snapLine.SnapLineType == (rtl ? SnapLineType.Right : SnapLineType.Left))
System\Windows\Forms\Design\ParentControlDesigner.cs (8)
319snapLines.Add(new SnapLine(SnapLineType.Vertical, displayRectangle.Left, SnapLine.PaddingLeft, SnapLinePriority.Always)); 320snapLines.Add(new SnapLine(SnapLineType.Vertical, displayRectangle.Right, SnapLine.PaddingRight, SnapLinePriority.Always)); 321snapLines.Add(new SnapLine(SnapLineType.Horizontal, displayRectangle.Top, SnapLine.PaddingTop, SnapLinePriority.Always)); 322snapLines.Add(new SnapLine(SnapLineType.Horizontal, displayRectangle.Bottom, SnapLine.PaddingBottom, SnapLinePriority.Always)); 848new SnapLine(SnapLineType.Left, r.Right), 849new SnapLine(SnapLineType.Right, r.Right), 850new SnapLine(SnapLineType.Bottom, r.Bottom), 851new SnapLine(SnapLineType.Top, r.Bottom)
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
56snapLines.Add(new SnapLine(SnapLineType.Baseline, baseline, SnapLinePriority.Medium));
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
52snapLines.Add(new SnapLine(SnapLineType.Baseline, baseline, SnapLinePriority.Medium));