1 implementation of INestedContainer
System.ComponentModel.TypeConverter (1)
System\ComponentModel\NestedContainer.cs (1)
16
public class NestedContainer : Container,
INestedContainer
55 references to INestedContainer
netstandard (1)
netstandard.cs (1)
337
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
INestedContainer
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
323
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
INestedContainer
))]
System.ComponentModel.TypeConverter (1)
System\ComponentModel\NestedContainer.cs (1)
85
if (service == typeof(
INestedContainer
))
System.Windows.Forms.Design (13)
System\ComponentModel\Design\DesignerHost.Site.cs (2)
38
SiteNestedContainer? nc = (((IServiceProvider)this).GetService(typeof(
INestedContainer
)) as SiteNestedContainer);
159
if (service == typeof(
INestedContainer
))
System\ComponentModel\Design\DesignSurface.cs (2)
306
public
INestedContainer
CreateNestedContainer(IComponent owningComponent)
317
public
INestedContainer
CreateNestedContainer(IComponent owningComponent, string? containerName)
System\ComponentModel\Design\InheritanceService.cs (1)
267
if (sender is
INestedContainer
nested && nested.Owner == _addingComponent)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
233
if (!site.TryGetService(out
INestedContainer
? container))
478
if (c.Site.TryGetService(out
INestedContainer
? nested) && nested.Components.Count > 0)
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (2)
100
if (e.Component!.Site?.Container is
INestedContainer
)
335
if (e.Component!.Site is
INestedContainer
)
System\Windows\Forms\Design\ControlCommandSet.cs (2)
1025
INestedContainer
nestedContainer = nestedSite.Container as
INestedContainer
;
System\Windows\Forms\Design\ControlDesigner.cs (1)
584
if (!TryGetService(out
INestedContainer
? nc))
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
29
private
INestedContainer
_nestedContainer; // NestedContainer for our DesignTime MenuItem.
System.Windows.Forms.Design.Tests (39)
Mocks\MockSite.cs (1)
46
.Setup(s => s.GetService(typeof(
INestedContainer
)))
System\ComponentModel\Design\DesignerHostTests.cs (9)
1503
INestedContainer
nestedContainer = Assert.IsAssignableFrom<
INestedContainer
>(component.Site.GetService(typeof(
INestedContainer
)));
1506
Assert.Same(nestedContainer, component.Site.GetService(typeof(
INestedContainer
)));
1516
INestedContainer
container = Assert.IsAssignableFrom<
INestedContainer
>(component.Site.GetService(typeof(
INestedContainer
)));
1517
Assert.Same(container, component.Site.GetService(typeof(
INestedContainer
)));
1550
NestedContainer container = Assert.IsAssignableFrom<NestedContainer>(component.Site.GetService(typeof(
INestedContainer
)));
System\ComponentModel\Design\DesignSurfaceTests.cs (2)
1133
using
INestedContainer
container = surface.CreateNestedContainer(ownerComponent);
1144
using
INestedContainer
container = surface.CreateNestedContainer(ownerComponent, containerName);
System\ComponentModel\Design\SiteNestedContainerTests.cs (26)
72
using
INestedContainer
container = surface.CreateNestedContainer(ownerComponent, containerName);
175
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
232
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
335
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
406
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
485
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
499
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
513
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
568
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
581
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
594
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
605
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
621
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
650
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
669
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
748
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
812
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
842
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
860
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
877
using
INestedContainer
container1 = surface.CreateNestedContainer(component1, "containerName");
879
using
INestedContainer
container2 = surface.CreateNestedContainer(component2, "containerName");
896
using
INestedContainer
container1 = surface.CreateNestedContainer(component1, "containerName");
898
using
INestedContainer
container2 = surface.CreateNestedContainer(component2, "containerName");
914
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
982
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
1005
using
INestedContainer
container = surface.CreateNestedContainer(owningComponent, "containerName");
TestControlDesigner.Mocks.cs (1)
78
.Setup(s => s.GetService(typeof(
INestedContainer
)))