4 implementations of IOleDragClient
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ComponentDocumentDesigner.cs (1)
14
public class ComponentDocumentDesigner : ComponentDesigner, IRootDesigner, IToolboxUser,
IOleDragClient
,
System\Windows\Forms\Design\ComponentTray.cs (1)
25
public class ComponentTray : ScrollableControl, IExtenderProvider, ISelectionUIHandler,
IOleDragClient
System\Windows\Forms\Design\DocumentDesigner.cs (1)
22
public partial class DocumentDesigner : ScrollableControlDesigner, IRootDesigner, IToolboxUser,
IOleDragClient
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
20
public partial class ParentControlDesigner : ControlDesigner,
IOleDragClient
35 references to IOleDragClient
System.Windows.Forms.Design (33)
System\Windows\Forms\Design\CommandSet.cs (2)
1904
IOleDragClient
? designer = null;
1916
if (tree is
IOleDragClient
oleDragClient)
System\Windows\Forms\Design\ComponentDocumentDesigner.cs (5)
40
bool
IOleDragClient
.CanModifyComponents
45
bool
IOleDragClient
.AddComponent(IComponent component, string name, bool firstAdd)
50
bool
IOleDragClient
.IsDropOk(IComponent component)
55
Control
IOleDragClient
.GetDesignerControl()
60
Control
IOleDragClient
.GetControlForComponent(object component)
System\Windows\Forms\Design\ComponentTray.cs (10)
480
IComponent
IOleDragClient
.Component
485
bool
IOleDragClient
.CanModifyComponents
490
bool
IOleDragClient
.AddComponent(IComponent component, string name, bool firstAdd)
493
if (_mainDesigner is
IOleDragClient
oleDragClient)
532
bool
IOleDragClient
.IsDropOk(IComponent component) => true;
534
Control
IOleDragClient
.GetDesignerControl() => this;
536
Control
IOleDragClient
.GetControlForComponent(object component)
625
if (((
IOleDragClient
)this).GetControlForComponent(component) is TrayControl tc)
1439
Control c = ((
IOleDragClient
)this).GetControlForComponent(o);
2880
public TrayOleDragDropHandler(SelectionUIHandler selectionHandler, IServiceProvider serviceProvider,
IOleDragClient
client) : base(selectionHandler, serviceProvider, client)
System\Windows\Forms\Design\DocumentDesigner.cs (2)
230
Control
IOleDragClient
.GetControlForComponent(object component)
233
return c ?? (_componentTray is not null ? ((
IOleDragClient
)_componentTray).GetControlForComponent(component) : null);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
41
public OleDragDropHandler(SelectionUIHandler? selectionHandler, IServiceProvider serviceProvider,
IOleDragClient
client)
66
internal
IOleDragClient
Destination { get; }
System\Windows\Forms\Design\ParentControlDesigner.cs (12)
476
selectedControl = ((
IOleDragClient
)this).GetControlForComponent(primarySelection);
1403
IOleDragClient
target = ddh.Destination;
1535
if (draggedDesigner is
IOleDragClient
)
1537
draggedControl = ((
IOleDragClient
)this).GetControlForComponent(dragComps[i]);
1563
if (!((
IOleDragClient
)this).IsDropOk(comp))
2288
IComponent
IOleDragClient
.Component
2301
bool
IOleDragClient
.AddComponent(IComponent component, string name, bool firstAdd)
2345
if (!((
IOleDragClient
)this).IsDropOk(component))
2453
bool
IOleDragClient
.CanModifyComponents
2465
bool
IOleDragClient
.IsDropOk(IComponent component)
2522
Control
IOleDragClient
.GetDesignerControl()
2532
Control
IOleDragClient
.GetControlForComponent(object component)
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\DocumentDesignerTests.cs (1)
32
((
IOleDragClient
)this).GetControlForComponent(component);
System\Windows\Forms\Design\OleDragDropHandlerTests.cs (1)
15
private readonly Mock<
IOleDragClient
> _clientMock;