41 references to Moveable
System.Windows.Forms.Design (28)
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
228
if (host.GetDesigner(ctrl) is ControlDesigner des && (des.SelectionRules & SelectionRules.
Moveable
) != 0)
System\Windows\Forms\Design\Behavior\NoResizeHandleGlyph.cs (2)
27
if ((selRules & SelectionRules.
Moveable
) != 0)
29
rules = SelectionRules.
Moveable
;
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (2)
29
if ((selRules & SelectionRules.
Moveable
) != 0)
31
rules = SelectionRules.
Moveable
;
System\Windows\Forms\Design\CommandSet.cs (1)
914
SelectionRules rules = SelectionRules.
Moveable
| SelectionRules.Visible;
System\Windows\Forms\Design\ComponentTray.cs (2)
615
SelectionRules ISelectionUIHandler.GetComponentRules(object component) => SelectionRules.Visible | SelectionRules.
Moveable
;
2216
if (_tray._selectionUISvc is not null && _tray._selectionUISvc.BeginDrag(SelectionRules.Visible | SelectionRules.
Moveable
, _mouseDragLast.X, _mouseDragLast.Y))
System\Windows\Forms\Design\ControlDesigner.cs (7)
211
rules |= SelectionRules.
Moveable
;
251
rules &= ~(SelectionRules.
Moveable
| SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.RightSizeable);
254
rules &= ~(SelectionRules.
Moveable
| SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.BottomSizeable);
257
rules &= ~(SelectionRules.
Moveable
| SelectionRules.TopSizeable | SelectionRules.BottomSizeable | SelectionRules.RightSizeable);
260
rules &= ~(SelectionRules.
Moveable
| SelectionRules.LeftSizeable | SelectionRules.BottomSizeable | SelectionRules.RightSizeable);
263
rules &= ~(SelectionRules.
Moveable
| SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.BottomSizeable);
1427
if (_host?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & SelectionRules.
Moveable
) != 0)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
169
rules &= ~(SelectionRules.
Moveable
| SelectionRules.TopSizeable | SelectionRules.LeftSizeable);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1037
if ((SelectionRules & SelectionRules.
Moveable
) != 0 &&
System\Windows\Forms\Design\SelectionUIHandler.cs (2)
305
if ((_rules & SelectionRules.
Moveable
) == 0)
352
if ((_rules & SelectionRules.
Moveable
) != 0)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (2)
21
if ((GetHitTest(point) & CONTAINER_SELECTOR) != 0 && (GetRules() & SelectionRules.
Moveable
) != SelectionRules.None)
41
if ((GetRules() & SelectionRules.
Moveable
) != SelectionRules.None)
System\Windows\Forms\Design\SelectionUIService.cs (4)
256
if ((rules & SelectionRules.
Moveable
) != 0)
526
SelectionRules rules = SelectionRules.
Moveable
;
546
rules |= SelectionRules.
Moveable
;
1073
if ((_dragRules & SelectionRules.
Moveable
) == SelectionRules.None && (_dragRules & (SelectionRules.TopSizeable | SelectionRules.LeftSizeable)) == SelectionRules.None)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (2)
202
if ((GetRules() & SelectionRules.
Moveable
) == SelectionRules.None)
236
return ((GetRules() & SelectionRules.
Moveable
) == SelectionRules.None ? 0 : MOVE_X | MOVE_Y);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1365
if ((SelectionRules & SelectionRules.
Moveable
) != 0 && InheritanceAttribute != InheritanceAttribute.InheritedReadOnly && (selType != GlyphSelectionType.NotSelected))
System.Windows.Forms.Design.Tests (13)
ControlDesignerTests.cs (5)
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)]
System\Windows\Forms\Design\ComboBoxDesignerTests.cs (1)
41
selectionRules.Should().Be(SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.
Moveable
| SelectionRules.Visible);
System\Windows\Forms\Design\DateTimePickerDesignerTests.cs (1)
43
selectionRules.Should().Be(SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.
Moveable
| SelectionRules.Visible);
System\Windows\Forms\Design\LabelDesignerTests.cs (1)
39
selectionRules.Should().Be(SelectionRules.AllSizeable | SelectionRules.
Moveable
| SelectionRules.Visible);
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (1)
31
selectionRules.Should().Be(SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.
Moveable
| SelectionRules.Visible);
System\Windows\Forms\Design\MonthCalendarDesignerTests.cs (1)
33
selectionRules.Should().Be(SelectionRules.BottomSizeable | SelectionRules.RightSizeable | SelectionRules.
Moveable
| SelectionRules.Visible);
System\Windows\Forms\Design\PictureBoxDesignerTests.cs (1)
29
selectionRules.Should().Be(SelectionRules.AllSizeable | SelectionRules.
Moveable
| SelectionRules.Visible);
System\Windows\Forms\Design\RadioButtonDesignerTests.cs (1)
41
selectionRules.Should().Be(SelectionRules.AllSizeable | SelectionRules.
Moveable
| SelectionRules.Visible);
System\Windows\Forms\Design\TabPageDesignerTests.cs (1)
64
selectionRules.Should().Be(SelectionRules.AllSizeable | SelectionRules.
Moveable
| SelectionRules.Visible);