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