51 references to None
System.Windows.Forms.Design (41)
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (1)
27rules = SelectionRules.None;
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 (1)
26rules = SelectionRules.None;
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (1)
27rules = SelectionRules.None;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
225_resizeComponents[i].resizeRules = SelectionRules.None; 300_targetResizeRules = SelectionRules.None; 307if (_targetResizeRules == SelectionRules.None)
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (1)
27rules = SelectionRules.None;
System\Windows\Forms\Design\CommandSet.cs (1)
454if (selectionRules != SelectionRules.None)
System\Windows\Forms\Design\ComponentTray.cs (1)
1464NoResizeHandleGlyph glyph = new(innerRect, SelectionRules.None, first, null);
System\Windows\Forms\Design\ControlDesigner.cs (1)
756else if ((rules & SelectionRules.AllSizeable) == SelectionRules.None)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
452if ((rules & SelectionRules.AllSizeable) != SelectionRules.None || Control.MouseButtons == MouseButtons.None)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (5)
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 (10)
213if (item is ContainerSelectionUIItem && (item.GetRules() & SelectionRules.Visible) != SelectionRules.None) 225if (item is not ContainerSelectionUIItem && (item.GetRules() & SelectionRules.Visible) != SelectionRules.None) 536SelectionRules rules = SelectionRules.None; 585_dragRules = SelectionRules.None; 959if (rules == SelectionRules.None) 1073if ((_dragRules & SelectionRules.Moveable) == SelectionRules.None && (_dragRules & (SelectionRules.TopSizeable | SelectionRules.LeftSizeable)) == SelectionRules.None) 1078if ((_dragRules & SelectionRules.AllSizeable) == SelectionRules.None) 1112_dragRules = SelectionRules.None; 1179if (selectionRules != SelectionRules.None)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (11)
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) 385if ((GetRules() & SelectionRules.Visible) == SelectionRules.None || _outerRect.IsEmpty || _innerRect.IsEmpty) 417if ((rules & SelectionRules.AllSizeable) == SelectionRules.None) 477_selectionRules = SelectionRules.None; 505if ((GetRules() & SelectionRules.Visible) == SelectionRules.None)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
261public override SelectionRules SelectionRules => Control.Parent is SplitContainer ? SelectionRules.Locked : SelectionRules.None;
System.Windows.Forms.Design.Tests (10)
ControlDesignerTests.cs (9)
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); 307(typeof(GrabHandleGlyph), SelectionRules.None), 310(typeof(GrabHandleGlyph), SelectionRules.None), 313(typeof(GrabHandleGlyph), SelectionRules.None), 314(typeof(GrabHandleGlyph), SelectionRules.None),
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (1)
61selectionRules.Should().Be(SelectionRules.None);