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