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