12 overrides of SelectionRules
System.Windows.Forms.Design (12)
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
104public override SelectionRules SelectionRules
System\Windows\Forms\Design\DateTimePickerDesigner.cs (1)
42public override SelectionRules SelectionRules
System\Windows\Forms\Design\DocumentDesigner.cs (1)
164public override SelectionRules SelectionRules
System\Windows\Forms\Design\LabelDesigner.cs (1)
141public override SelectionRules SelectionRules
System\Windows\Forms\Design\MonthCalendarDesigner.cs (1)
18public override SelectionRules SelectionRules
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
82public override SelectionRules SelectionRules
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
261public override SelectionRules SelectionRules => Control.Parent is SplitContainer ? SelectionRules.Locked : SelectionRules.None;
System\Windows\Forms\Design\TabPageDesigner.cs (1)
14public override SelectionRules SelectionRules
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
124public override SelectionRules SelectionRules
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
117public override SelectionRules SelectionRules
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
15public override SelectionRules SelectionRules
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
27public override SelectionRules SelectionRules
36 references to SelectionRules
System.Windows.Forms.Design (22)
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\ResizeBehavior.cs (1)
220_resizeComponents[i].resizeRules = designer.SelectionRules;
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
108SelectionRules rules = base.SelectionRules;
System\Windows\Forms\Design\CommandSet.cs (2)
461if (host.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & selectionRules) == selectionRules) 917if (host.GetDesigner(component) is ControlDesigner des && ((des.SelectionRules & rules) != rules))
System\Windows\Forms\Design\ControlCommandSet.cs (3)
527if (des is not null && ((des.SelectionRules & SelectionRules.Locked) == 0)) 631List<SnapLine> targetSnaplines = GenerateSnapLines(des.SelectionRules, primaryControl, moveOffsetX, moveOffsetY); 756if (des is not null && ((des.SelectionRules & rules) != rules))
System\Windows\Forms\Design\ControlDesigner.cs (2)
743SelectionRules rules = SelectionRules; 1427if (_host?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0)
System\Windows\Forms\Design\DateTimePickerDesigner.cs (1)
43=> base.SelectionRules & ~(SelectionRules.TopSizeable | SelectionRules.BottomSizeable);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
168SelectionRules rules = base.SelectionRules;
System\Windows\Forms\Design\LabelDesigner.cs (1)
145SelectionRules rules = base.SelectionRules;
System\Windows\Forms\Design\MonthCalendarDesigner.cs (1)
22SelectionRules rules = base.SelectionRules;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1037if ((SelectionRules & SelectionRules.Moveable) != 0 &&
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
86SelectionRules rules = base.SelectionRules;
System\Windows\Forms\Design\TabPageDesigner.cs (1)
18SelectionRules rules = base.SelectionRules;
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
128SelectionRules rules = base.SelectionRules;
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1365if ((SelectionRules & SelectionRules.Moveable) != 0 && InheritanceAttribute != InheritanceAttribute.InheritedReadOnly && (selType != GlyphSelectionType.NotSelected))
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
120: base.SelectionRules;
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
19SelectionRules rules = base.SelectionRules;
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
31SelectionRules rules = base.SelectionRules;
System.Windows.Forms.Design.Tests (14)
ControlDesignerTests.cs (2)
97SelectionRules finalSelectionRules = _designer.SelectionRules; 104_designer.SelectionRules.Should().Be(finalSelectionRules);
System\Windows\Forms\Design\ComboBoxDesignerTests.cs (1)
38selectionRules = comboBoxDesigner.SelectionRules;
System\Windows\Forms\Design\DateTimePickerDesignerTests.cs (1)
40selectionRules = dateTimePickerDesigner.SelectionRules;
System\Windows\Forms\Design\LabelDesignerTests.cs (1)
36selectionRules = labelDesigner.SelectionRules;
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (1)
28selectionRules = maskedTextBoxDesigner.SelectionRules;
System\Windows\Forms\Design\MonthCalendarDesignerTests.cs (1)
30selectionRules = monthCalendarDesigner.SelectionRules;
System\Windows\Forms\Design\PictureBoxDesignerTests.cs (1)
26selectionRules = pictureBoxDesigner.SelectionRules;
System\Windows\Forms\Design\RadioButtonDesignerTests.cs (1)
38selectionRules = radioButtonDesigner.SelectionRules;
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (1)
60SelectionRules selectionRules = splitterPanelDesigner.SelectionRules;
System\Windows\Forms\Design\TabPageDesignerTests.cs (1)
61selectionRules = designer.SelectionRules;
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (2)
39SelectionRules rules = _designer.SelectionRules; 76_designer.SelectionRules.Should().HaveFlag(expectedRules);
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (1)
43SelectionRules rules = _designer.SelectionRules;