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)
413newSelection[comp] = new SelectionUIItem(this, comp); 925SelectionUIItem item = new(this, component); 1291selUI = 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; 157foreach (SelectionUIItem s in _selectionItems.Values) 203foreach (SelectionUIItem item in _selectionItems.Values) 210if ((hitTest & SelectionUIItem.CONTAINER_SELECTOR) != 0) 222if (hitTest != SelectionUIItem.NOHIT) 230return new HitTestInfo(SelectionUIItem.NOHIT, item); 237return new HitTestInfo(SelectionUIItem.NOHIT, null); 391Dictionary<object, SelectionUIItem> newSelection = new(selection.Count); 396if (_selectionItems.TryGetValue(comp, out SelectionUIItem? existingItem)) 516if ((hitTest & SelectionUIItem.CONTAINER_SELECTOR) != 0) 528else if (hitTest != SelectionUIItem.NOHIT && me.Button == MouseButtons.Left) 538if ((hitTest & SelectionUIItem.MOVE_MASK) != 0) 543if ((hitTest & SelectionUIItem.SIZE_MASK) != 0) 545if ((hitTest & (SelectionUIItem.SIZE_X | SelectionUIItem.POS_RIGHT)) == (SelectionUIItem.SIZE_X | SelectionUIItem.POS_RIGHT)) 550if ((hitTest & (SelectionUIItem.SIZE_X | SelectionUIItem.POS_LEFT)) == (SelectionUIItem.SIZE_X | SelectionUIItem.POS_LEFT)) 555if ((hitTest & (SelectionUIItem.SIZE_Y | SelectionUIItem.POS_TOP)) == (SelectionUIItem.SIZE_Y | SelectionUIItem.POS_TOP)) 560if ((hitTest & (SelectionUIItem.SIZE_Y | SelectionUIItem.POS_BOTTOM)) == (SelectionUIItem.SIZE_Y | SelectionUIItem.POS_BOTTOM)) 577else if (hitTest == SelectionUIItem.NOHIT) 603if (hitTest != SelectionUIItem.CONTAINER_SELECTOR && hti.selectionUIHit is not null) 621if (!((ISelectionUIService)this).Dragging && (_mouseDragHitTest & SelectionUIItem.MOVE_MASK) != 0) 647if ((_mouseDragHitTest & SelectionUIItem.MOVE_X) != 0) 652if ((_mouseDragHitTest & SelectionUIItem.MOVE_Y) != 0) 657if ((_mouseDragHitTest & SelectionUIItem.SIZE_X) != 0) 659if ((_mouseDragHitTest & SelectionUIItem.POS_LEFT) != 0) 670if ((_mouseDragHitTest & SelectionUIItem.SIZE_Y) != 0) 672if ((_mouseDragHitTest & SelectionUIItem.POS_TOP) != 0) 693if ((_mouseDragHitTest & SelectionUIItem.MOVE_X) != 0 || (_mouseDragHitTest & SelectionUIItem.MOVE_Y) != 0) 761foreach (SelectionUIItem item in _selectionItems.Values) 771foreach (SelectionUIItem item in _selectionItems.Values) 787foreach (SelectionUIItem item in _selectionItems.Values) 802foreach (SelectionUIItem item in _selectionItems.Values) 825foreach (SelectionUIItem item in _selectionItems.Values) 925SelectionUIItem item = new(this, component); 1172if (_selectionItems.TryGetValue(comp, out SelectionUIItem? item) && item is not ContainerSelectionUIItem) 1193AdornmentType.GrabHandle => new Size(SelectionUIItem.GRABHANDLE_WIDTH, SelectionUIItem.GRABHANDLE_HEIGHT), 1203GetHitTest(value, HITTEST_DEFAULT).hitTest != SelectionUIItem.NOHIT; 1211&& _selectionItems.TryGetValue(component, out SelectionUIItem? value) 1220if (!_selectionItems.TryGetValue(component, out SelectionUIItem? selection)) 1239=> !_selectionItems.TryGetValue(component, out SelectionUIItem? item) ? SelectionStyles.None : item.Style; 1250_selectionItems.TryGetValue(component, out SelectionUIItem? existingItem); 1255SelectionUIItem item = new ContainerSelectionUIItem(this, component); 1266if (!_selectionItems.TryGetValue(component, out SelectionUIItem? existingItem) || existingItem is ContainerSelectionUIItem) 1288_selectionItems.TryGetValue(component, out SelectionUIItem? selUI); 1322foreach (SelectionUIItem item in _selectionItems.Values) 1352foreach (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)