1 type derived from SelectionUIItem
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (1)
10
private class ContainerSelectionUIItem :
SelectionUIItem
3 instantiations of SelectionUIItem
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\SelectionUIService.cs (3)
419
newSelection[comp] = new
SelectionUIItem
(this, comp);
931
SelectionUIItem item =
new
(this, component);
1303
selUI = new
SelectionUIItem
(this, component);
62 references to SelectionUIItem
System.Windows.Forms.Design (62)
System\Windows\Forms\Design\SelectionUIService.cs (59)
45
private Dictionary<object,
SelectionUIItem
> _selectionItems;
163
foreach (
SelectionUIItem
s in _selectionItems.Values)
209
foreach (
SelectionUIItem
item in _selectionItems.Values)
216
if ((hitTest &
SelectionUIItem
.CONTAINER_SELECTOR) != 0)
228
if (hitTest !=
SelectionUIItem
.NOHIT)
236
return new HitTestInfo(
SelectionUIItem
.NOHIT, item);
243
return new HitTestInfo(
SelectionUIItem
.NOHIT, null);
397
Dictionary<object,
SelectionUIItem
> newSelection = new(selection.Count);
402
if (_selectionItems.TryGetValue(comp, out
SelectionUIItem
? existingItem))
522
if ((hitTest &
SelectionUIItem
.CONTAINER_SELECTOR) != 0)
534
else if (hitTest !=
SelectionUIItem
.NOHIT && me.Button == MouseButtons.Left)
544
if ((hitTest &
SelectionUIItem
.MOVE_MASK) != 0)
549
if ((hitTest &
SelectionUIItem
.SIZE_MASK) != 0)
551
if ((hitTest & (
SelectionUIItem
.SIZE_X |
SelectionUIItem
.POS_RIGHT)) == (
SelectionUIItem
.SIZE_X |
SelectionUIItem
.POS_RIGHT))
556
if ((hitTest & (
SelectionUIItem
.SIZE_X |
SelectionUIItem
.POS_LEFT)) == (
SelectionUIItem
.SIZE_X |
SelectionUIItem
.POS_LEFT))
561
if ((hitTest & (
SelectionUIItem
.SIZE_Y |
SelectionUIItem
.POS_TOP)) == (
SelectionUIItem
.SIZE_Y |
SelectionUIItem
.POS_TOP))
566
if ((hitTest & (
SelectionUIItem
.SIZE_Y |
SelectionUIItem
.POS_BOTTOM)) == (
SelectionUIItem
.SIZE_Y |
SelectionUIItem
.POS_BOTTOM))
583
else if (hitTest ==
SelectionUIItem
.NOHIT)
609
if (hitTest !=
SelectionUIItem
.CONTAINER_SELECTOR && hti.selectionUIHit is not null)
627
if (!((ISelectionUIService)this).Dragging && (_mouseDragHitTest &
SelectionUIItem
.MOVE_MASK) != 0)
653
if ((_mouseDragHitTest &
SelectionUIItem
.MOVE_X) != 0)
658
if ((_mouseDragHitTest &
SelectionUIItem
.MOVE_Y) != 0)
663
if ((_mouseDragHitTest &
SelectionUIItem
.SIZE_X) != 0)
665
if ((_mouseDragHitTest &
SelectionUIItem
.POS_LEFT) != 0)
676
if ((_mouseDragHitTest &
SelectionUIItem
.SIZE_Y) != 0)
678
if ((_mouseDragHitTest &
SelectionUIItem
.POS_TOP) != 0)
699
if ((_mouseDragHitTest &
SelectionUIItem
.MOVE_X) != 0 || (_mouseDragHitTest &
SelectionUIItem
.MOVE_Y) != 0)
767
foreach (
SelectionUIItem
item in _selectionItems.Values)
777
foreach (
SelectionUIItem
item in _selectionItems.Values)
793
foreach (
SelectionUIItem
item in _selectionItems.Values)
808
foreach (
SelectionUIItem
item in _selectionItems.Values)
831
foreach (
SelectionUIItem
item in _selectionItems.Values)
931
SelectionUIItem
item = new(this, component);
1184
if (_selectionItems.TryGetValue(comp, out
SelectionUIItem
? item) && item is not ContainerSelectionUIItem)
1205
AdornmentType.GrabHandle => new Size(
SelectionUIItem
.GRABHANDLE_WIDTH,
SelectionUIItem
.GRABHANDLE_HEIGHT),
1215
GetHitTest(value, HITTEST_DEFAULT).hitTest !=
SelectionUIItem
.NOHIT;
1223
&& _selectionItems.TryGetValue(component, out
SelectionUIItem
? value)
1232
if (!_selectionItems.TryGetValue(component, out
SelectionUIItem
? selection))
1251
=> !_selectionItems.TryGetValue(component, out
SelectionUIItem
? item) ? SelectionStyles.None : item.Style;
1262
_selectionItems.TryGetValue(component, out
SelectionUIItem
? existingItem);
1267
SelectionUIItem
item = new ContainerSelectionUIItem(this, component);
1278
if (!_selectionItems.TryGetValue(component, out
SelectionUIItem
? existingItem) || existingItem is ContainerSelectionUIItem)
1300
_selectionItems.TryGetValue(component, out
SelectionUIItem
? selUI);
1334
foreach (
SelectionUIItem
item in _selectionItems.Values)
1364
foreach (
SelectionUIItem
item in _selectionItems.Values)
System\Windows\Forms\Design\SelectionUIService.HitTestInfo.cs (3)
11
public readonly
SelectionUIItem
? selectionUIHit;
14
public HitTestInfo(int hitTest,
SelectionUIItem
? selectionUIHit)
20
public HitTestInfo(int hitTest,
SelectionUIItem
selectionUIHit, bool containerSelector)