51 references to None
System.Windows.Forms.Design (41)
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (1)
27
rules = SelectionRules.
None
;
System\Windows\Forms\Design\Behavior\LockedBorderGlyph.cs (1)
30
rules = SelectionRules.
None
; // never change sel rules for locked
System\Windows\Forms\Design\Behavior\LockedHandleGlyph.cs (1)
25
rules = SelectionRules.
None
;
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
38
rules = SelectionRules.
None
; // never change sel rules for locked
System\Windows\Forms\Design\Behavior\NoResizeHandleGlyph.cs (1)
26
rules = SelectionRules.
None
;
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (1)
27
rules = SelectionRules.
None
;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
225
_resizeComponents[i].resizeRules = SelectionRules.
None
;
300
_targetResizeRules = SelectionRules.
None
;
307
if (_targetResizeRules == SelectionRules.
None
)
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (1)
27
rules = SelectionRules.
None
;
System\Windows\Forms\Design\CommandSet.cs (1)
454
if (selectionRules != SelectionRules.
None
)
System\Windows\Forms\Design\ComponentTray.cs (1)
1464
NoResizeHandleGlyph glyph = new(innerRect, SelectionRules.
None
, first, null);
System\Windows\Forms\Design\ControlDesigner.cs (1)
756
else if ((rules & SelectionRules.AllSizeable) == SelectionRules.
None
)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
452
if ((rules & SelectionRules.AllSizeable) != SelectionRules.
None
|| Control.MouseButtons == MouseButtons.None)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (5)
21
if ((GetHitTest(point) & CONTAINER_SELECTOR) != 0 && (GetRules() & SelectionRules.Moveable) != SelectionRules.
None
)
34
if ((GetRules() & SelectionRules.Visible) != SelectionRules.
None
&& !_outerRect.IsEmpty)
41
if ((GetRules() & SelectionRules.Moveable) != SelectionRules.
None
)
54
if ((GetRules() & SelectionRules.Visible) == SelectionRules.
None
)
70
if ((GetRules() & SelectionRules.Visible) != SelectionRules.
None
&& !_outerRect.IsEmpty)
System\Windows\Forms\Design\SelectionUIService.cs (10)
213
if (item is ContainerSelectionUIItem && (item.GetRules() & SelectionRules.Visible) != SelectionRules.
None
)
225
if (item is not ContainerSelectionUIItem && (item.GetRules() & SelectionRules.Visible) != SelectionRules.
None
)
536
SelectionRules rules = SelectionRules.
None
;
585
_dragRules = SelectionRules.
None
;
959
if (rules == SelectionRules.
None
)
1073
if ((_dragRules & SelectionRules.Moveable) == SelectionRules.
None
&& (_dragRules & (SelectionRules.TopSizeable | SelectionRules.LeftSizeable)) == SelectionRules.
None
)
1078
if ((_dragRules & SelectionRules.AllSizeable) == SelectionRules.
None
)
1112
_dragRules = SelectionRules.
None
;
1179
if (selectionRules != SelectionRules.
None
)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (11)
121
if ((GetRules() & SelectionRules.Visible) == SelectionRules.
None
)
152
if (((GetRules() & SelectionRules.Locked) == SelectionRules.
None
) && (GetRules() & SelectionRules.AllSizeable) != SelectionRules.
None
)
195
if ((GetRules() & SelectionRules.AllSizeable) != SelectionRules.
None
)
202
if ((GetRules() & SelectionRules.Moveable) == SelectionRules.
None
)
236
return ((GetRules() & SelectionRules.Moveable) == SelectionRules.
None
? 0 : MOVE_X | MOVE_Y);
331
if ((GetRules() & SelectionRules.Visible) != SelectionRules.
None
&& !_outerRect.IsEmpty)
385
if ((GetRules() & SelectionRules.Visible) == SelectionRules.
None
|| _outerRect.IsEmpty || _innerRect.IsEmpty)
417
if ((rules & SelectionRules.AllSizeable) == SelectionRules.
None
)
477
_selectionRules = SelectionRules.
None
;
505
if ((GetRules() & SelectionRules.Visible) == SelectionRules.
None
)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
261
public 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)
61
selectionRules.Should().Be(SelectionRules.
None
);