392 references to SelectionRules
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net10.0\System.Design.Forwards.cs (1)
100
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Forms.Design.
SelectionRules
))]
System.Windows.Forms.Design (291)
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\GrabHandleGlyph.cs (13)
27
rules =
SelectionRules
.None;
35
rules =
SelectionRules
.TopSizeable |
SelectionRules
.LeftSizeable;
40
rules =
SelectionRules
.TopSizeable |
SelectionRules
.RightSizeable;
45
rules =
SelectionRules
.BottomSizeable |
SelectionRules
.RightSizeable;
50
rules =
SelectionRules
.BottomSizeable |
SelectionRules
.LeftSizeable;
60
rules =
SelectionRules
.TopSizeable;
72
rules =
SelectionRules
.BottomSizeable;
84
rules =
SelectionRules
.LeftSizeable;
96
rules =
SelectionRules
.RightSizeable;
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 (4)
21
internal NoResizeHandleGlyph(Rectangle controlBounds,
SelectionRules
selRules, bool primarySelection, Behavior? behavior)
26
rules =
SelectionRules
.None;
27
if ((selRules &
SelectionRules
.Moveable) != 0)
29
rules =
SelectionRules
.Moveable;
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (5)
16
internal NoResizeSelectionBorderGlyph(Rectangle controlBounds,
SelectionRules
rules, SelectionBorderGlyphType type, Behavior? behavior)
25
private void InitializeGlyph(Rectangle controlBounds,
SelectionRules
selRules, SelectionBorderGlyphType type)
27
rules =
SelectionRules
.None;
29
if ((selRules &
SelectionRules
.Moveable) != 0)
31
rules =
SelectionRules
.Moveable;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (32)
23
public
SelectionRules
resizeRules;
29
private
SelectionRules
_targetResizeRules; // rules dictating which sizes we can change
90
private Rectangle AdjustToGrid(Rectangle controlBounds,
SelectionRules
rules)
94
if ((rules &
SelectionRules
.RightSizeable) != 0)
106
else if ((rules &
SelectionRules
.LeftSizeable) != 0)
121
if ((rules &
SelectionRules
.BottomSizeable) != 0)
133
else if ((rules &
SelectionRules
.TopSizeable) != 0)
158
private SnapLine[] GenerateSnapLines(
SelectionRules
rules, Point loc)
162
if ((rules &
SelectionRules
.BottomSizeable) != 0)
170
else if ((rules &
SelectionRules
.TopSizeable) != 0)
179
if ((rules &
SelectionRules
.RightSizeable) != 0)
187
else if ((rules &
SelectionRules
.LeftSizeable) != 0)
225
_resizeComponents[i].resizeRules =
SelectionRules
.None;
300
_targetResizeRules =
SelectionRules
.None;
307
if (_targetResizeRules ==
SelectionRules
.None)
556
if ((((_targetResizeRules &
SelectionRules
.BottomSizeable) != 0) || ((_targetResizeRules &
SelectionRules
.TopSizeable) != 0)) &&
561
else if ((((_targetResizeRules &
SelectionRules
.RightSizeable) != 0) || ((_targetResizeRules &
SelectionRules
.LeftSizeable) != 0)) &&
665
SelectionRules
resizeRules = _resizeComponents[i].resizeRules;
666
if (((_targetResizeRules &
SelectionRules
.BottomSizeable) != 0) &&
667
((resizeRules &
SelectionRules
.BottomSizeable) != 0))
683
if (((_targetResizeRules &
SelectionRules
.TopSizeable) != 0) &&
684
((resizeRules &
SelectionRules
.TopSizeable) != 0))
708
if (((((_targetResizeRules &
SelectionRules
.RightSizeable) != 0) && ((resizeRules &
SelectionRules
.RightSizeable) != 0)) && (!fRTL)) ||
709
((((_targetResizeRules &
SelectionRules
.LeftSizeable) != 0) && ((resizeRules &
SelectionRules
.LeftSizeable) != 0)) && (fRTL)))
721
if (((((_targetResizeRules &
SelectionRules
.RightSizeable) != 0) && ((resizeRules &
SelectionRules
.RightSizeable) != 0)) && (fRTL)) ||
722
((((_targetResizeRules &
SelectionRules
.LeftSizeable) != 0) && ((resizeRules &
SelectionRules
.LeftSizeable) != 0)) && (!fRTL)))
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (11)
16
internal SelectionBorderGlyph(Rectangle controlBounds,
SelectionRules
rules, SelectionBorderGlyphType type, Behavior? behavior)
25
private void InitializeGlyph(Rectangle controlBounds,
SelectionRules
selRules, SelectionBorderGlyphType type)
27
rules =
SelectionRules
.None;
38
if ((selRules &
SelectionRules
.TopSizeable) != 0)
41
rules =
SelectionRules
.TopSizeable;
49
if ((selRules &
SelectionRules
.BottomSizeable) != 0)
52
rules =
SelectionRules
.BottomSizeable;
60
if ((selRules &
SelectionRules
.LeftSizeable) != 0)
63
rules =
SelectionRules
.LeftSizeable;
71
if ((selRules &
SelectionRules
.RightSizeable) != 0)
74
rules =
SelectionRules
.RightSizeable;
System\Windows\Forms\Design\Behavior\SelectionGlyphBase.cs (2)
17
protected
SelectionRules
rules; // the selection rules - defining how the control can change
29
public
SelectionRules
SelectionRules
System\Windows\Forms\Design\ComboBoxDesigner.cs (4)
104
public override
SelectionRules
SelectionRules
108
SelectionRules
rules = base.SelectionRules;
116
rules &= ~(
SelectionRules
.TopSizeable |
SelectionRules
.BottomSizeable);
System\Windows\Forms\Design\CommandSet.cs (8)
446
private IComponent[] FilterSelection(IComponent[]? components,
SelectionRules
selectionRules)
454
if (selectionRules !=
SelectionRules
.None)
914
SelectionRules
rules =
SelectionRules
.Moveable |
SelectionRules
.Visible;
2292
selectedObjects = FilterSelection(selectedObjects,
SelectionRules
.Visible);
2392
selectedObjects = FilterSelection(selectedObjects,
SelectionRules
.Visible);
2549
selectedObjects = FilterSelection(selectedObjects,
SelectionRules
.Visible);
System\Windows\Forms\Design\ComponentTray.cs (9)
553
bool ISelectionUIHandler.BeginDrag(object[] components,
SelectionRules
rules, int initialX, int initialY)
615
SelectionRules
ISelectionUIHandler.GetComponentRules(object component) =>
SelectionRules
.Visible |
SelectionRules
.Moveable;
638
bool ISelectionUIHandler.QueryBeginDrag(object[] components,
SelectionRules
rules, int initialX, int initialY)
1464
NoResizeHandleGlyph glyph = new(innerRect,
SelectionRules
.None, first, null);
2216
if (_tray._selectionUISvc is not null && _tray._selectionUISvc.BeginDrag(
SelectionRules
.Visible |
SelectionRules
.Moveable, _mouseDragLast.X, _mouseDragLast.Y))
2817
public override bool BeginDrag(object[] components,
SelectionRules
rules, int initialX, int initialY)
System\Windows\Forms\Design\ControlCommandSet.cs (15)
462
private List<SnapLine> GenerateSnapLines(
SelectionRules
rules, Control primaryControl, int directionOffsetX, int directionOffsetY)
478
if ((rules &
SelectionRules
.RightSizeable) != 0)
486
if ((rules &
SelectionRules
.LeftSizeable) != 0)
499
if ((rules &
SelectionRules
.BottomSizeable) != 0)
527
if (des is not null && ((des.SelectionRules &
SelectionRules
.Locked) == 0))
540
SelectionRules
rules =
SelectionRules
.Visible;
551
rules |=
SelectionRules
.BottomSizeable;
556
rules |=
SelectionRules
.BottomSizeable;
561
rules |=
SelectionRules
.RightSizeable;
566
rules |=
SelectionRules
.RightSizeable;
572
rules |=
SelectionRules
.BottomSizeable;
578
rules |=
SelectionRules
.BottomSizeable;
584
rules |=
SelectionRules
.RightSizeable;
590
rules |=
SelectionRules
.RightSizeable;
System\Windows\Forms\Design\ControlDesigner.cs (41)
198
public virtual
SelectionRules
SelectionRules
203
SelectionRules
rules =
SelectionRules
.Visible;
211
rules |=
SelectionRules
.Moveable;
220
? rules |
SelectionRules
.AllSizeable
225
rules |=
SelectionRules
.AllSizeable;
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);
275
rules =
SelectionRules
.Locked |
SelectionRules
.Visible;
743
SelectionRules
rules = SelectionRules;
756
else if ((rules &
SelectionRules
.AllSizeable) ==
SelectionRules
.None)
781
if ((rules &
SelectionRules
.TopSizeable) != 0)
784
if ((rules &
SelectionRules
.LeftSizeable) != 0)
789
if ((rules &
SelectionRules
.RightSizeable) != 0)
795
if ((rules &
SelectionRules
.BottomSizeable) != 0)
798
if ((rules &
SelectionRules
.LeftSizeable) != 0)
803
if ((rules &
SelectionRules
.RightSizeable) != 0)
809
if ((rules &
SelectionRules
.LeftSizeable) != 0)
814
if ((rules &
SelectionRules
.RightSizeable) != 0)
1427
if (_host?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules &
SelectionRules
.Moveable) != 0)
System\Windows\Forms\Design\DateTimePickerDesigner.cs (3)
42
public override
SelectionRules
SelectionRules
43
=> base.SelectionRules & ~(
SelectionRules
.TopSizeable |
SelectionRules
.BottomSizeable);
System\Windows\Forms\Design\DocumentDesigner.cs (6)
164
public override
SelectionRules
SelectionRules
168
SelectionRules
rules = base.SelectionRules;
169
rules &= ~(
SelectionRules
.Moveable |
SelectionRules
.TopSizeable |
SelectionRules
.LeftSizeable);
537
SelectionRules
rules = SelectionRules;
System\Windows\Forms\Design\ISelectionUIHandler.cs (3)
22
bool BeginDrag(object[] components,
SelectionRules
rules, int initialX, int initialY);
49
SelectionRules
GetComponentRules(object component);
69
bool QueryBeginDrag(object[] components,
SelectionRules
rules, int initialX, int initialY);
System\Windows\Forms\Design\ISelectionUIService.cs (3)
42
bool BeginDrag(
SelectionRules
rules, int initialX, int initialY);
66
object[] FilterSelection(object[] components,
SelectionRules
selectionRules);
89
SelectionRules
GetSelectionRules(object component);
System\Windows\Forms\Design\LabelDesigner.cs (3)
141
public override
SelectionRules
SelectionRules
145
SelectionRules
rules = base.SelectionRules;
155
rules &= ~
SelectionRules
.AllSizeable;
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (4)
189
public override
SelectionRules
SelectionRules
193
SelectionRules
rules = base.SelectionRules;
194
rules &= ~(
SelectionRules
.TopSizeable |
SelectionRules
.BottomSizeable); // Height is fixed.
System\Windows\Forms\Design\MonthCalendarDesigner.cs (6)
18
public override
SelectionRules
SelectionRules
22
SelectionRules
rules = base.SelectionRules;
26
rules &= ~(
SelectionRules
.TopSizeable |
SelectionRules
.LeftSizeable);
30
rules &= ~(
SelectionRules
.TopSizeable |
SelectionRules
.RightSizeable);
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
449
public unsafe bool DoBeginDrag(object[] components,
SelectionRules
rules, int initialX, int initialY)
452
if ((rules &
SelectionRules
.AllSizeable) !=
SelectionRules
.None || Control.MouseButtons == MouseButtons.None)
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1037
if ((SelectionRules &
SelectionRules
.Moveable) != 0 &&
System\Windows\Forms\Design\PictureBoxDesigner.cs (3)
82
public override
SelectionRules
SelectionRules
86
SelectionRules
rules = base.SelectionRules;
97
rules &= ~
SelectionRules
.AllSizeable;
System\Windows\Forms\Design\SelectionUIHandler.cs (8)
24
private
SelectionRules
_rules; // the rules of the current drag.
37
public virtual bool BeginDrag(object[] components,
SelectionRules
rules, int initialX, int initialY)
305
if ((_rules &
SelectionRules
.Moveable) == 0)
352
if ((_rules &
SelectionRules
.Moveable) != 0)
359
if ((_rules &
SelectionRules
.TopSizeable) != 0)
365
if ((_rules &
SelectionRules
.BottomSizeable) != 0)
370
if ((_rules &
SelectionRules
.LeftSizeable) != 0)
376
if ((_rules &
SelectionRules
.RightSizeable) != 0)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (10)
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 (32)
33
private
SelectionRules
_dragRules; // movement constraints for the drag
213
if (item is ContainerSelectionUIItem && (item.GetRules() &
SelectionRules
.Visible) !=
SelectionRules
.None)
225
if (item is not ContainerSelectionUIItem && (item.GetRules() &
SelectionRules
.Visible) !=
SelectionRules
.None)
252
public static string GetTransactionName(
SelectionRules
rules, object[] objects)
256
if ((rules &
SelectionRules
.Moveable) != 0)
280
else if ((rules &
SelectionRules
.AllSizeable) != 0)
526
SelectionRules
rules =
SelectionRules
.Moveable;
536
SelectionRules
rules =
SelectionRules
.None;
546
rules |=
SelectionRules
.Moveable;
553
rules |=
SelectionRules
.RightSizeable;
558
rules |=
SelectionRules
.LeftSizeable;
563
rules |=
SelectionRules
.TopSizeable;
568
rules |=
SelectionRules
.BottomSizeable;
585
_dragRules =
SelectionRules
.None;
951
bool ISelectionUIService.BeginDrag(
SelectionRules
rules, int initialX, int initialY)
959
if (rules ==
SelectionRules
.None)
1000
SelectionRules
compRules = primaryHandler.GetComponentRules(objects[i]);
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;
1169
object[] ISelectionUIService.FilterSelection(object[] components,
SelectionRules
selectionRules)
1179
if (selectionRules !=
SelectionRules
.None)
1230
SelectionRules
ISelectionUIService.GetSelectionRules(object component)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (33)
68
private
SelectionRules
_selectionRules;
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)
357
public
SelectionRules
GetRules() => _selectionRules;
385
if ((GetRules() &
SelectionRules
.Visible) ==
SelectionRules
.None || _outerRect.IsEmpty || _innerRect.IsEmpty)
416
SelectionRules
rules = GetRules();
417
if ((rules &
SelectionRules
.AllSizeable) ==
SelectionRules
.None)
428
if ((rules &
SelectionRules
.TopSizeable) !=
SelectionRules
.TopSizeable)
438
if ((rules &
SelectionRules
.LeftSizeable) !=
SelectionRules
.LeftSizeable)
448
if ((rules &
SelectionRules
.BottomSizeable) !=
SelectionRules
.BottomSizeable)
458
if ((rules &
SelectionRules
.RightSizeable) !=
SelectionRules
.RightSizeable)
477
_selectionRules =
SelectionRules
.None;
481
SelectionRules
oldRules = _selectionRules;
505
if ((GetRules() &
SelectionRules
.Visible) ==
SelectionRules
.None)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
261
public override
SelectionRules
SelectionRules => Control.Parent is SplitContainer ?
SelectionRules
.Locked :
SelectionRules
.None;
System\Windows\Forms\Design\TabPageDesigner.cs (3)
14
public override
SelectionRules
SelectionRules
18
SelectionRules
rules = base.SelectionRules;
23
rules &= ~
SelectionRules
.AllSizeable;
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (5)
124
public override
SelectionRules
SelectionRules
128
SelectionRules
rules = base.SelectionRules;
131
rules |=
SelectionRules
.AllSizeable;
142
rules &= ~(
SelectionRules
.TopSizeable |
SelectionRules
.BottomSizeable);
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 (2)
117
public override
SelectionRules
SelectionRules
119
?
SelectionRules
.Locked
System\Windows\Forms\Design\TrackBarDesigner.cs (7)
15
public override
SelectionRules
SelectionRules
19
SelectionRules
rules = base.SelectionRules;
20
rules |=
SelectionRules
.AllSizeable;
29
rules &= ~(
SelectionRules
.TopSizeable |
SelectionRules
.BottomSizeable);
32
rules &= ~(
SelectionRules
.LeftSizeable |
SelectionRules
.RightSizeable);
System\Windows\Forms\Design\UpDownBaseDesigner.cs (4)
27
public override
SelectionRules
SelectionRules
31
SelectionRules
rules = base.SelectionRules;
32
rules &= ~(
SelectionRules
.TopSizeable |
SelectionRules
.BottomSizeable);
System.Windows.Forms.Design.Tests (100)
ControlDesignerTests.cs (51)
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)]
94
public void DockStyle_DefinesProperSelectionRules(DockStyle dockStyle,
SelectionRules
selectionRulesParam)
97
SelectionRules
finalSelectionRules = _designer.SelectionRules;
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);
305
var expectedGlyphs = new (Type glyphType,
SelectionRules
rules)[]
307
(typeof(GrabHandleGlyph),
SelectionRules
.None),
308
(typeof(GrabHandleGlyph),
SelectionRules
.TopSizeable |
SelectionRules
.LeftSizeable),
309
(typeof(GrabHandleGlyph),
SelectionRules
.TopSizeable |
SelectionRules
.RightSizeable),
310
(typeof(GrabHandleGlyph),
SelectionRules
.None),
311
(typeof(GrabHandleGlyph),
SelectionRules
.BottomSizeable |
SelectionRules
.LeftSizeable),
312
(typeof(GrabHandleGlyph),
SelectionRules
.BottomSizeable |
SelectionRules
.RightSizeable),
313
(typeof(GrabHandleGlyph),
SelectionRules
.None),
314
(typeof(GrabHandleGlyph),
SelectionRules
.None),
315
(typeof(SelectionBorderGlyph),
SelectionRules
.TopSizeable),
316
(typeof(SelectionBorderGlyph),
SelectionRules
.BottomSizeable),
317
(typeof(SelectionBorderGlyph),
SelectionRules
.LeftSizeable),
318
(typeof(SelectionBorderGlyph),
SelectionRules
.RightSizeable),
324
((
SelectionRules
)glyphs[i].TestAccessor().Dynamic.rules).Should().Be(expectedGlyphs[i].rules);
System\Windows\Forms\Design\ComboBoxDesignerTests.cs (5)
35
SelectionRules
selectionRules;
41
selectionRules.Should().Be(
SelectionRules
.LeftSizeable |
SelectionRules
.RightSizeable |
SelectionRules
.Moveable |
SelectionRules
.Visible);
System\Windows\Forms\Design\DateTimePickerDesignerTests.cs (5)
37
SelectionRules
selectionRules;
43
selectionRules.Should().Be(
SelectionRules
.LeftSizeable |
SelectionRules
.RightSizeable |
SelectionRules
.Moveable |
SelectionRules
.Visible);
System\Windows\Forms\Design\LabelDesignerTests.cs (4)
33
SelectionRules
selectionRules;
39
selectionRules.Should().Be(
SelectionRules
.AllSizeable |
SelectionRules
.Moveable |
SelectionRules
.Visible);
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (5)
25
SelectionRules
selectionRules;
31
selectionRules.Should().Be(
SelectionRules
.LeftSizeable |
SelectionRules
.RightSizeable |
SelectionRules
.Moveable |
SelectionRules
.Visible);
System\Windows\Forms\Design\MonthCalendarDesignerTests.cs (5)
27
SelectionRules
selectionRules;
33
selectionRules.Should().Be(
SelectionRules
.BottomSizeable |
SelectionRules
.RightSizeable |
SelectionRules
.Moveable |
SelectionRules
.Visible);
System\Windows\Forms\Design\PictureBoxDesignerTests.cs (4)
23
SelectionRules
selectionRules;
29
selectionRules.Should().Be(
SelectionRules
.AllSizeable |
SelectionRules
.Moveable |
SelectionRules
.Visible);
System\Windows\Forms\Design\RadioButtonDesignerTests.cs (4)
35
SelectionRules
selectionRules;
41
selectionRules.Should().Be(
SelectionRules
.AllSizeable |
SelectionRules
.Moveable |
SelectionRules
.Visible);
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (2)
60
SelectionRules
selectionRules = splitterPanelDesigner.SelectionRules;
61
selectionRules.Should().Be(
SelectionRules
.None);
System\Windows\Forms\Design\TabPageDesignerTests.cs (4)
58
SelectionRules
selectionRules;
64
selectionRules.Should().Be(
SelectionRules
.AllSizeable |
SelectionRules
.Moveable |
SelectionRules
.Visible);
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (8)
39
SelectionRules
rules = _designer.SelectionRules;
41
rules.Should().NotHaveFlag(
SelectionRules
.TopSizeable |
SelectionRules
.BottomSizeable);
67
[InlineData(false, true,
SelectionRules
.LeftSizeable |
SelectionRules
.RightSizeable)]
68
[InlineData(true, true,
SelectionRules
.AllSizeable)]
69
[InlineData(false, false,
SelectionRules
.AllSizeable)]
70
public void SelectionRules_ReturnsCorrectRules(bool multiline, bool autoSize,
SelectionRules
expectedRules)
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (3)
43
SelectionRules
rules = _designer.SelectionRules;
45
rules.Should().NotHaveFlag(
SelectionRules
.TopSizeable |
SelectionRules
.BottomSizeable);