1 implementation of ISelectionUIHandler
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ComponentTray.cs (1)
25
public class ComponentTray : ScrollableControl, IExtenderProvider,
ISelectionUIHandler
, IOleDragClient
27 references to ISelectionUIHandler
System.Windows.Forms.Design (27)
System\Windows\Forms\Design\ComponentTray.cs (13)
547
bool
ISelectionUIHandler
.BeginDrag(object[] components, SelectionRules rules, int initialX, int initialY)
583
void
ISelectionUIHandler
.DragMoved(object[] components, Rectangle offset) => DragHandler.DragMoved(components, offset);
585
void
ISelectionUIHandler
.EndDrag(object[] components, bool cancel)
607
Rectangle
ISelectionUIHandler
.GetComponentBounds(object component) => Rectangle.Empty;
609
SelectionRules
ISelectionUIHandler
.GetComponentRules(object component) => SelectionRules.Visible | SelectionRules.Moveable;
611
Rectangle
ISelectionUIHandler
.GetSelectionClipRect(object component)
621
void
ISelectionUIHandler
.OnSelectionDoubleClick(IComponent component)
632
bool
ISelectionUIHandler
.QueryBeginDrag(object[] components, SelectionRules rules, int initialX, int initialY)
635
void
ISelectionUIHandler
.ShowContextMenu(IComponent component) => OnContextMenu(MousePosition);
663
void
ISelectionUIHandler
.OleDragEnter(DragEventArgs de) => GetOleDragHandler().DoOleDragEnter(de);
665
void
ISelectionUIHandler
.OleDragDrop(DragEventArgs de) => GetOleDragHandler().DoOleDragDrop(de);
667
void
ISelectionUIHandler
.OleDragOver(DragEventArgs de) => GetOleDragHandler().DoOleDragOver(de);
669
void
ISelectionUIHandler
.OleDragLeave() => GetOleDragHandler().DoOleDragLeave();
System\Windows\Forms\Design\ISelectionUIService.cs (2)
34
void AssignSelectionUIHandler(object component,
ISelectionUIHandler
handler);
36
void ClearSelectionUIHandler(object component,
ISelectionUIHandler
handler);
System\Windows\Forms\Design\SelectionUIService.cs (11)
31
private
ISelectionUIHandler
? _dragHandler; // the current drag handler
46
private readonly Dictionary<object,
ISelectionUIHandler
> _selectionHandlers; // Component UI handlers
240
private
ISelectionUIHandler
? GetHandler(object component)
241
=> _selectionHandlers.TryGetValue(component, out
ISelectionUIHandler
? value) ? value : null;
496
ISelectionUIHandler
? handler = GetHandler(selComp);
904
void ISelectionUIService.AssignSelectionUIHandler(object component,
ISelectionUIHandler
handler)
906
if (_selectionHandlers.TryGetValue(component, out
ISelectionUIHandler
? oldHandler))
932
void ISelectionUIService.ClearSelectionUIHandler(object component,
ISelectionUIHandler
handler)
934
_selectionHandlers.TryGetValue(component, out
ISelectionUIHandler
? oldHandler);
976
ISelectionUIHandler
? primaryHandler = null;
1098
ISelectionUIHandler
? handler = _dragHandler;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
69
private readonly
ISelectionUIHandler
? _handler; // the components selection UI handler (can be null)