392 references to SelectionRules
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net10.0\System.Design.Forwards.cs (1)
100[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Forms.Design.SelectionRules))]
System.Windows.Forms.Design (291)
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
228if (host.GetDesigner(ctrl) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0)
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (13)
27rules = SelectionRules.None; 35rules = SelectionRules.TopSizeable | SelectionRules.LeftSizeable; 40rules = SelectionRules.TopSizeable | SelectionRules.RightSizeable; 45rules = SelectionRules.BottomSizeable | SelectionRules.RightSizeable; 50rules = SelectionRules.BottomSizeable | SelectionRules.LeftSizeable; 60rules = SelectionRules.TopSizeable; 72rules = SelectionRules.BottomSizeable; 84rules = SelectionRules.LeftSizeable; 96rules = SelectionRules.RightSizeable;
System\Windows\Forms\Design\Behavior\LockedBorderGlyph.cs (1)
30rules = SelectionRules.None; // never change sel rules for locked
System\Windows\Forms\Design\Behavior\LockedHandleGlyph.cs (1)
25rules = SelectionRules.None;
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
38rules = SelectionRules.None; // never change sel rules for locked
System\Windows\Forms\Design\Behavior\NoResizeHandleGlyph.cs (4)
21internal NoResizeHandleGlyph(Rectangle controlBounds, SelectionRules selRules, bool primarySelection, Behavior? behavior) 26rules = SelectionRules.None; 27if ((selRules & SelectionRules.Moveable) != 0) 29rules = SelectionRules.Moveable;
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (5)
16internal NoResizeSelectionBorderGlyph(Rectangle controlBounds, SelectionRules rules, SelectionBorderGlyphType type, Behavior? behavior) 25private void InitializeGlyph(Rectangle controlBounds, SelectionRules selRules, SelectionBorderGlyphType type) 27rules = SelectionRules.None; 29if ((selRules & SelectionRules.Moveable) != 0) 31rules = SelectionRules.Moveable;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (32)
23public SelectionRules resizeRules; 29private SelectionRules _targetResizeRules; // rules dictating which sizes we can change 90private Rectangle AdjustToGrid(Rectangle controlBounds, SelectionRules rules) 94if ((rules & SelectionRules.RightSizeable) != 0) 106else if ((rules & SelectionRules.LeftSizeable) != 0) 121if ((rules & SelectionRules.BottomSizeable) != 0) 133else if ((rules & SelectionRules.TopSizeable) != 0) 158private SnapLine[] GenerateSnapLines(SelectionRules rules, Point loc) 162if ((rules & SelectionRules.BottomSizeable) != 0) 170else if ((rules & SelectionRules.TopSizeable) != 0) 179if ((rules & SelectionRules.RightSizeable) != 0) 187else if ((rules & SelectionRules.LeftSizeable) != 0) 225_resizeComponents[i].resizeRules = SelectionRules.None; 300_targetResizeRules = SelectionRules.None; 307if (_targetResizeRules == SelectionRules.None) 556if ((((_targetResizeRules & SelectionRules.BottomSizeable) != 0) || ((_targetResizeRules & SelectionRules.TopSizeable) != 0)) && 561else if ((((_targetResizeRules & SelectionRules.RightSizeable) != 0) || ((_targetResizeRules & SelectionRules.LeftSizeable) != 0)) && 665SelectionRules resizeRules = _resizeComponents[i].resizeRules; 666if (((_targetResizeRules & SelectionRules.BottomSizeable) != 0) && 667((resizeRules & SelectionRules.BottomSizeable) != 0)) 683if (((_targetResizeRules & SelectionRules.TopSizeable) != 0) && 684((resizeRules & SelectionRules.TopSizeable) != 0)) 708if (((((_targetResizeRules & SelectionRules.RightSizeable) != 0) && ((resizeRules & SelectionRules.RightSizeable) != 0)) && (!fRTL)) || 709((((_targetResizeRules & SelectionRules.LeftSizeable) != 0) && ((resizeRules & SelectionRules.LeftSizeable) != 0)) && (fRTL))) 721if (((((_targetResizeRules & SelectionRules.RightSizeable) != 0) && ((resizeRules & SelectionRules.RightSizeable) != 0)) && (fRTL)) || 722((((_targetResizeRules & SelectionRules.LeftSizeable) != 0) && ((resizeRules & SelectionRules.LeftSizeable) != 0)) && (!fRTL)))
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (11)
16internal SelectionBorderGlyph(Rectangle controlBounds, SelectionRules rules, SelectionBorderGlyphType type, Behavior? behavior) 25private void InitializeGlyph(Rectangle controlBounds, SelectionRules selRules, SelectionBorderGlyphType type) 27rules = SelectionRules.None; 38if ((selRules & SelectionRules.TopSizeable) != 0) 41rules = SelectionRules.TopSizeable; 49if ((selRules & SelectionRules.BottomSizeable) != 0) 52rules = SelectionRules.BottomSizeable; 60if ((selRules & SelectionRules.LeftSizeable) != 0) 63rules = SelectionRules.LeftSizeable; 71if ((selRules & SelectionRules.RightSizeable) != 0) 74rules = SelectionRules.RightSizeable;
System\Windows\Forms\Design\Behavior\SelectionGlyphBase.cs (2)
17protected SelectionRules rules; // the selection rules - defining how the control can change 29public SelectionRules SelectionRules
System\Windows\Forms\Design\ComboBoxDesigner.cs (4)
104public override SelectionRules SelectionRules 108SelectionRules rules = base.SelectionRules; 116rules &= ~(SelectionRules.TopSizeable | SelectionRules.BottomSizeable);
System\Windows\Forms\Design\CommandSet.cs (8)
446private IComponent[] FilterSelection(IComponent[]? components, SelectionRules selectionRules) 454if (selectionRules != SelectionRules.None) 914SelectionRules rules = SelectionRules.Moveable | SelectionRules.Visible; 2292selectedObjects = FilterSelection(selectedObjects, SelectionRules.Visible); 2392selectedObjects = FilterSelection(selectedObjects, SelectionRules.Visible); 2549selectedObjects = FilterSelection(selectedObjects, SelectionRules.Visible);
System\Windows\Forms\Design\ComponentTray.cs (9)
553bool ISelectionUIHandler.BeginDrag(object[] components, SelectionRules rules, int initialX, int initialY) 615SelectionRules ISelectionUIHandler.GetComponentRules(object component) => SelectionRules.Visible | SelectionRules.Moveable; 638bool ISelectionUIHandler.QueryBeginDrag(object[] components, SelectionRules rules, int initialX, int initialY) 1464NoResizeHandleGlyph glyph = new(innerRect, SelectionRules.None, first, null); 2216if (_tray._selectionUISvc is not null && _tray._selectionUISvc.BeginDrag(SelectionRules.Visible | SelectionRules.Moveable, _mouseDragLast.X, _mouseDragLast.Y)) 2817public override bool BeginDrag(object[] components, SelectionRules rules, int initialX, int initialY)
System\Windows\Forms\Design\ControlCommandSet.cs (15)
462private List<SnapLine> GenerateSnapLines(SelectionRules rules, Control primaryControl, int directionOffsetX, int directionOffsetY) 478if ((rules & SelectionRules.RightSizeable) != 0) 486if ((rules & SelectionRules.LeftSizeable) != 0) 499if ((rules & SelectionRules.BottomSizeable) != 0) 527if (des is not null && ((des.SelectionRules & SelectionRules.Locked) == 0)) 540SelectionRules rules = SelectionRules.Visible; 551rules |= SelectionRules.BottomSizeable; 556rules |= SelectionRules.BottomSizeable; 561rules |= SelectionRules.RightSizeable; 566rules |= SelectionRules.RightSizeable; 572rules |= SelectionRules.BottomSizeable; 578rules |= SelectionRules.BottomSizeable; 584rules |= SelectionRules.RightSizeable; 590rules |= SelectionRules.RightSizeable;
System\Windows\Forms\Design\ControlDesigner.cs (41)
198public virtual SelectionRules SelectionRules 203SelectionRules rules = SelectionRules.Visible; 211rules |= SelectionRules.Moveable; 220? rules | SelectionRules.AllSizeable 225rules |= SelectionRules.AllSizeable; 251rules &= ~(SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.RightSizeable); 254rules &= ~(SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.BottomSizeable); 257rules &= ~(SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.BottomSizeable | SelectionRules.RightSizeable); 260rules &= ~(SelectionRules.Moveable | SelectionRules.LeftSizeable | SelectionRules.BottomSizeable | SelectionRules.RightSizeable); 263rules &= ~(SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.BottomSizeable); 275rules = SelectionRules.Locked | SelectionRules.Visible; 743SelectionRules rules = SelectionRules; 756else if ((rules & SelectionRules.AllSizeable) == SelectionRules.None) 781if ((rules & SelectionRules.TopSizeable) != 0) 784if ((rules & SelectionRules.LeftSizeable) != 0) 789if ((rules & SelectionRules.RightSizeable) != 0) 795if ((rules & SelectionRules.BottomSizeable) != 0) 798if ((rules & SelectionRules.LeftSizeable) != 0) 803if ((rules & SelectionRules.RightSizeable) != 0) 809if ((rules & SelectionRules.LeftSizeable) != 0) 814if ((rules & SelectionRules.RightSizeable) != 0) 1427if (_host?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0)
System\Windows\Forms\Design\DateTimePickerDesigner.cs (3)
42public override SelectionRules SelectionRules 43=> base.SelectionRules & ~(SelectionRules.TopSizeable | SelectionRules.BottomSizeable);
System\Windows\Forms\Design\DocumentDesigner.cs (6)
164public override SelectionRules SelectionRules 168SelectionRules rules = base.SelectionRules; 169rules &= ~(SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable); 537SelectionRules rules = SelectionRules;
System\Windows\Forms\Design\ISelectionUIHandler.cs (3)
22bool BeginDrag(object[] components, SelectionRules rules, int initialX, int initialY); 49SelectionRules GetComponentRules(object component); 69bool QueryBeginDrag(object[] components, SelectionRules rules, int initialX, int initialY);
System\Windows\Forms\Design\ISelectionUIService.cs (3)
42bool BeginDrag(SelectionRules rules, int initialX, int initialY); 66object[] FilterSelection(object[] components, SelectionRules selectionRules); 89SelectionRules GetSelectionRules(object component);
System\Windows\Forms\Design\LabelDesigner.cs (3)
141public override SelectionRules SelectionRules 145SelectionRules rules = base.SelectionRules; 155rules &= ~SelectionRules.AllSizeable;
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (4)
189public override SelectionRules SelectionRules 193SelectionRules rules = base.SelectionRules; 194rules &= ~(SelectionRules.TopSizeable | SelectionRules.BottomSizeable); // Height is fixed.
System\Windows\Forms\Design\MonthCalendarDesigner.cs (6)
18public override SelectionRules SelectionRules 22SelectionRules rules = base.SelectionRules; 26rules &= ~(SelectionRules.TopSizeable | SelectionRules.LeftSizeable); 30rules &= ~(SelectionRules.TopSizeable | SelectionRules.RightSizeable);
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
449public unsafe bool DoBeginDrag(object[] components, SelectionRules rules, int initialX, int initialY) 452if ((rules & SelectionRules.AllSizeable) != SelectionRules.None || Control.MouseButtons == MouseButtons.None)
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1037if ((SelectionRules & SelectionRules.Moveable) != 0 &&
System\Windows\Forms\Design\PictureBoxDesigner.cs (3)
82public override SelectionRules SelectionRules 86SelectionRules rules = base.SelectionRules; 97rules &= ~SelectionRules.AllSizeable;
System\Windows\Forms\Design\SelectionUIHandler.cs (8)
24private SelectionRules _rules; // the rules of the current drag. 37public virtual bool BeginDrag(object[] components, SelectionRules rules, int initialX, int initialY) 305if ((_rules & SelectionRules.Moveable) == 0) 352if ((_rules & SelectionRules.Moveable) != 0) 359if ((_rules & SelectionRules.TopSizeable) != 0) 365if ((_rules & SelectionRules.BottomSizeable) != 0) 370if ((_rules & SelectionRules.LeftSizeable) != 0) 376if ((_rules & SelectionRules.RightSizeable) != 0)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (10)
21if ((GetHitTest(point) & CONTAINER_SELECTOR) != 0 && (GetRules() & SelectionRules.Moveable) != SelectionRules.None) 34if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.IsEmpty) 41if ((GetRules() & SelectionRules.Moveable) != SelectionRules.None) 54if ((GetRules() & SelectionRules.Visible) == SelectionRules.None) 70if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.IsEmpty)
System\Windows\Forms\Design\SelectionUIService.cs (32)
33private SelectionRules _dragRules; // movement constraints for the drag 213if (item is ContainerSelectionUIItem && (item.GetRules() & SelectionRules.Visible) != SelectionRules.None) 225if (item is not ContainerSelectionUIItem && (item.GetRules() & SelectionRules.Visible) != SelectionRules.None) 252public static string GetTransactionName(SelectionRules rules, object[] objects) 256if ((rules & SelectionRules.Moveable) != 0) 280else if ((rules & SelectionRules.AllSizeable) != 0) 526SelectionRules rules = SelectionRules.Moveable; 536SelectionRules rules = SelectionRules.None; 546rules |= SelectionRules.Moveable; 553rules |= SelectionRules.RightSizeable; 558rules |= SelectionRules.LeftSizeable; 563rules |= SelectionRules.TopSizeable; 568rules |= SelectionRules.BottomSizeable; 585_dragRules = SelectionRules.None; 951bool ISelectionUIService.BeginDrag(SelectionRules rules, int initialX, int initialY) 959if (rules == SelectionRules.None) 1000SelectionRules compRules = primaryHandler.GetComponentRules(objects[i]); 1073if ((_dragRules & SelectionRules.Moveable) == SelectionRules.None && (_dragRules & (SelectionRules.TopSizeable | SelectionRules.LeftSizeable)) == SelectionRules.None) 1078if ((_dragRules & SelectionRules.AllSizeable) == SelectionRules.None) 1112_dragRules = SelectionRules.None; 1169object[] ISelectionUIService.FilterSelection(object[] components, SelectionRules selectionRules) 1179if (selectionRules != SelectionRules.None) 1230SelectionRules ISelectionUIService.GetSelectionRules(object component)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (33)
68private SelectionRules _selectionRules; 121if ((GetRules() & SelectionRules.Visible) == SelectionRules.None) 152if (((GetRules() & SelectionRules.Locked) == SelectionRules.None) && (GetRules() & SelectionRules.AllSizeable) != SelectionRules.None) 195if ((GetRules() & SelectionRules.AllSizeable) != SelectionRules.None) 202if ((GetRules() & SelectionRules.Moveable) == SelectionRules.None) 236return ((GetRules() & SelectionRules.Moveable) == SelectionRules.None ? 0 : MOVE_X | MOVE_Y); 331if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.IsEmpty) 357public SelectionRules GetRules() => _selectionRules; 385if ((GetRules() & SelectionRules.Visible) == SelectionRules.None || _outerRect.IsEmpty || _innerRect.IsEmpty) 416SelectionRules rules = GetRules(); 417if ((rules & SelectionRules.AllSizeable) == SelectionRules.None) 428if ((rules & SelectionRules.TopSizeable) != SelectionRules.TopSizeable) 438if ((rules & SelectionRules.LeftSizeable) != SelectionRules.LeftSizeable) 448if ((rules & SelectionRules.BottomSizeable) != SelectionRules.BottomSizeable) 458if ((rules & SelectionRules.RightSizeable) != SelectionRules.RightSizeable) 477_selectionRules = SelectionRules.None; 481SelectionRules oldRules = _selectionRules; 505if ((GetRules() & SelectionRules.Visible) == SelectionRules.None)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
261public override SelectionRules SelectionRules => Control.Parent is SplitContainer ? SelectionRules.Locked : SelectionRules.None;
System\Windows\Forms\Design\TabPageDesigner.cs (3)
14public override SelectionRules SelectionRules 18SelectionRules rules = base.SelectionRules; 23rules &= ~SelectionRules.AllSizeable;
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (5)
124public override SelectionRules SelectionRules 128SelectionRules rules = base.SelectionRules; 131rules |= SelectionRules.AllSizeable; 142rules &= ~(SelectionRules.TopSizeable | SelectionRules.BottomSizeable);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1365if ((SelectionRules & SelectionRules.Moveable) != 0 && InheritanceAttribute != InheritanceAttribute.InheritedReadOnly && (selType != GlyphSelectionType.NotSelected))
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
117public override SelectionRules SelectionRules 119? SelectionRules.Locked
System\Windows\Forms\Design\TrackBarDesigner.cs (7)
15public override SelectionRules SelectionRules 19SelectionRules rules = base.SelectionRules; 20rules |= SelectionRules.AllSizeable; 29rules &= ~(SelectionRules.TopSizeable | SelectionRules.BottomSizeable); 32rules &= ~(SelectionRules.LeftSizeable | SelectionRules.RightSizeable);
System\Windows\Forms\Design\UpDownBaseDesigner.cs (4)
27public override SelectionRules SelectionRules 31SelectionRules rules = base.SelectionRules; 32rules &= ~(SelectionRules.TopSizeable | SelectionRules.BottomSizeable);
System.Windows.Forms.Design.Tests (100)
ControlDesignerTests.cs (51)
89[InlineData(DockStyle.Top, SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.RightSizeable)] 90[InlineData(DockStyle.Left, SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.BottomSizeable)] 91[InlineData(DockStyle.Right, SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.BottomSizeable | SelectionRules.RightSizeable)] 92[InlineData(DockStyle.Bottom, SelectionRules.Moveable | SelectionRules.LeftSizeable | SelectionRules.BottomSizeable | SelectionRules.RightSizeable)] 93[InlineData(DockStyle.Fill, SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.BottomSizeable)] 94public void DockStyle_DefinesProperSelectionRules(DockStyle dockStyle, SelectionRules selectionRulesParam) 97SelectionRules finalSelectionRules = _designer.SelectionRules; 277((SelectionRules)glyphs[0].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 279((SelectionRules)glyphs[1].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 281((SelectionRules)glyphs[2].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 283((SelectionRules)glyphs[3].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 285((SelectionRules)glyphs[4].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 305var expectedGlyphs = new (Type glyphType, SelectionRules rules)[] 307(typeof(GrabHandleGlyph), SelectionRules.None), 308(typeof(GrabHandleGlyph), SelectionRules.TopSizeable | SelectionRules.LeftSizeable), 309(typeof(GrabHandleGlyph), SelectionRules.TopSizeable | SelectionRules.RightSizeable), 310(typeof(GrabHandleGlyph), SelectionRules.None), 311(typeof(GrabHandleGlyph), SelectionRules.BottomSizeable | SelectionRules.LeftSizeable), 312(typeof(GrabHandleGlyph), SelectionRules.BottomSizeable | SelectionRules.RightSizeable), 313(typeof(GrabHandleGlyph), SelectionRules.None), 314(typeof(GrabHandleGlyph), SelectionRules.None), 315(typeof(SelectionBorderGlyph), SelectionRules.TopSizeable), 316(typeof(SelectionBorderGlyph), SelectionRules.BottomSizeable), 317(typeof(SelectionBorderGlyph), SelectionRules.LeftSizeable), 318(typeof(SelectionBorderGlyph), SelectionRules.RightSizeable), 324((SelectionRules)glyphs[i].TestAccessor().Dynamic.rules).Should().Be(expectedGlyphs[i].rules);
System\Windows\Forms\Design\ComboBoxDesignerTests.cs (5)
35SelectionRules selectionRules; 41selectionRules.Should().Be(SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.Moveable | SelectionRules.Visible);
System\Windows\Forms\Design\DateTimePickerDesignerTests.cs (5)
37SelectionRules selectionRules; 43selectionRules.Should().Be(SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.Moveable | SelectionRules.Visible);
System\Windows\Forms\Design\LabelDesignerTests.cs (4)
33SelectionRules selectionRules; 39selectionRules.Should().Be(SelectionRules.AllSizeable | SelectionRules.Moveable | SelectionRules.Visible);
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (5)
25SelectionRules selectionRules; 31selectionRules.Should().Be(SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.Moveable | SelectionRules.Visible);
System\Windows\Forms\Design\MonthCalendarDesignerTests.cs (5)
27SelectionRules selectionRules; 33selectionRules.Should().Be(SelectionRules.BottomSizeable | SelectionRules.RightSizeable | SelectionRules.Moveable | SelectionRules.Visible);
System\Windows\Forms\Design\PictureBoxDesignerTests.cs (4)
23SelectionRules selectionRules; 29selectionRules.Should().Be(SelectionRules.AllSizeable | SelectionRules.Moveable | SelectionRules.Visible);
System\Windows\Forms\Design\RadioButtonDesignerTests.cs (4)
35SelectionRules selectionRules; 41selectionRules.Should().Be(SelectionRules.AllSizeable | SelectionRules.Moveable | SelectionRules.Visible);
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (2)
60SelectionRules selectionRules = splitterPanelDesigner.SelectionRules; 61selectionRules.Should().Be(SelectionRules.None);
System\Windows\Forms\Design\TabPageDesignerTests.cs (4)
58SelectionRules selectionRules; 64selectionRules.Should().Be(SelectionRules.AllSizeable | SelectionRules.Moveable | SelectionRules.Visible);
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (8)
39SelectionRules rules = _designer.SelectionRules; 41rules.Should().NotHaveFlag(SelectionRules.TopSizeable | SelectionRules.BottomSizeable); 67[InlineData(false, true, SelectionRules.LeftSizeable | SelectionRules.RightSizeable)] 68[InlineData(true, true, SelectionRules.AllSizeable)] 69[InlineData(false, false, SelectionRules.AllSizeable)] 70public void SelectionRules_ReturnsCorrectRules(bool multiline, bool autoSize, SelectionRules expectedRules)
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (3)
43SelectionRules rules = _designer.SelectionRules; 45rules.Should().NotHaveFlag(SelectionRules.TopSizeable | SelectionRules.BottomSizeable);