1 implementation of ISelectionUIHandler
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ComponentTray.cs (1)
25public class ComponentTray : ScrollableControl, IExtenderProvider, ISelectionUIHandler, IOleDragClient
27 references to ISelectionUIHandler
System.Windows.Forms.Design (27)
System\Windows\Forms\Design\ComponentTray.cs (13)
553bool ISelectionUIHandler.BeginDrag(object[] components, SelectionRules rules, int initialX, int initialY) 589void ISelectionUIHandler.DragMoved(object[] components, Rectangle offset) => DragHandler.DragMoved(components, offset); 591void ISelectionUIHandler.EndDrag(object[] components, bool cancel) 613Rectangle ISelectionUIHandler.GetComponentBounds(object component) => Rectangle.Empty; 615SelectionRules ISelectionUIHandler.GetComponentRules(object component) => SelectionRules.Visible | SelectionRules.Moveable; 617Rectangle ISelectionUIHandler.GetSelectionClipRect(object component) 627void ISelectionUIHandler.OnSelectionDoubleClick(IComponent component) 638bool ISelectionUIHandler.QueryBeginDrag(object[] components, SelectionRules rules, int initialX, int initialY) 641void ISelectionUIHandler.ShowContextMenu(IComponent component) => OnContextMenu(MousePosition); 669void ISelectionUIHandler.OleDragEnter(DragEventArgs de) => GetOleDragHandler().DoOleDragEnter(de); 671void ISelectionUIHandler.OleDragDrop(DragEventArgs de) => GetOleDragHandler().DoOleDragDrop(de); 673void ISelectionUIHandler.OleDragOver(DragEventArgs de) => GetOleDragHandler().DoOleDragOver(de); 675void ISelectionUIHandler.OleDragLeave() => GetOleDragHandler().DoOleDragLeave();
System\Windows\Forms\Design\ISelectionUIService.cs (2)
34void AssignSelectionUIHandler(object component, ISelectionUIHandler handler); 36void ClearSelectionUIHandler(object component, ISelectionUIHandler handler);
System\Windows\Forms\Design\SelectionUIService.cs (11)
31private ISelectionUIHandler? _dragHandler; // the current drag handler 46private readonly Dictionary<object, ISelectionUIHandler> _selectionHandlers; // Component UI handlers 246private ISelectionUIHandler? GetHandler(object component) 247=> _selectionHandlers.TryGetValue(component, out ISelectionUIHandler? value) ? value : null; 502ISelectionUIHandler? handler = GetHandler(selComp); 910void ISelectionUIService.AssignSelectionUIHandler(object component, ISelectionUIHandler handler) 912if (_selectionHandlers.TryGetValue(component, out ISelectionUIHandler? oldHandler)) 938void ISelectionUIService.ClearSelectionUIHandler(object component, ISelectionUIHandler handler) 940_selectionHandlers.TryGetValue(component, out ISelectionUIHandler? oldHandler); 982ISelectionUIHandler? primaryHandler = null; 1107ISelectionUIHandler? handler = _dragHandler;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
69private readonly ISelectionUIHandler? _handler; // the components selection UI handler (can be null)