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)
553
bool
ISelectionUIHandler
.BeginDrag(object[] components, SelectionRules rules, int initialX, int initialY)
589
void
ISelectionUIHandler
.DragMoved(object[] components, Rectangle offset) => DragHandler.DragMoved(components, offset);
591
void
ISelectionUIHandler
.EndDrag(object[] components, bool cancel)
613
Rectangle
ISelectionUIHandler
.GetComponentBounds(object component) => Rectangle.Empty;
615
SelectionRules
ISelectionUIHandler
.GetComponentRules(object component) => SelectionRules.Visible | SelectionRules.Moveable;
617
Rectangle
ISelectionUIHandler
.GetSelectionClipRect(object component)
627
void
ISelectionUIHandler
.OnSelectionDoubleClick(IComponent component)
638
bool
ISelectionUIHandler
.QueryBeginDrag(object[] components, SelectionRules rules, int initialX, int initialY)
641
void
ISelectionUIHandler
.ShowContextMenu(IComponent component) => OnContextMenu(MousePosition);
669
void
ISelectionUIHandler
.OleDragEnter(DragEventArgs de) => GetOleDragHandler().DoOleDragEnter(de);
671
void
ISelectionUIHandler
.OleDragDrop(DragEventArgs de) => GetOleDragHandler().DoOleDragDrop(de);
673
void
ISelectionUIHandler
.OleDragOver(DragEventArgs de) => GetOleDragHandler().DoOleDragOver(de);
675
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
246
private
ISelectionUIHandler
? GetHandler(object component)
247
=> _selectionHandlers.TryGetValue(component, out
ISelectionUIHandler
? value) ? value : null;
502
ISelectionUIHandler
? handler = GetHandler(selComp);
910
void ISelectionUIService.AssignSelectionUIHandler(object component,
ISelectionUIHandler
handler)
912
if (_selectionHandlers.TryGetValue(component, out
ISelectionUIHandler
? oldHandler))
938
void ISelectionUIService.ClearSelectionUIHandler(object component,
ISelectionUIHandler
handler)
940
_selectionHandlers.TryGetValue(component, out
ISelectionUIHandler
? oldHandler);
982
ISelectionUIHandler
? primaryHandler = null;
1107
ISelectionUIHandler
? handler = _dragHandler;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
69
private readonly
ISelectionUIHandler
? _handler; // the components selection UI handler (can be null)