1 implementation of RootComponentClassName
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
875string IDesignerHost.RootComponentClassName => _rootComponentClassName!;
41 references to RootComponentClassName
System.Windows.Forms.Design.Tests (41)
System\ComponentModel\Design\DesignerHostTests.cs (20)
135Assert.Null(host.RootComponentClassName); 281Assert.Same(expectedName, host.RootComponentClassName); 292Assert.Same(expectedName, host.RootComponentClassName); 303Assert.Same(expectedName, host.RootComponentClassName); 314Assert.Same(expectedName, host.RootComponentClassName); 336Assert.Equal("name1", host.RootComponentClassName); 348Assert.Equal("name1", host.RootComponentClassName); 359Assert.Equal("name1", host.RootComponentClassName); 370Assert.Equal("name1", host.RootComponentClassName); 1270Assert.Same(expectedName, host.RootComponentClassName); 1275Assert.Same(expectedName, host.RootComponentClassName); 1352Assert.Equal(oldRootComponentClassName, host.RootComponentClassName); 1357Assert.Equal(oldRootComponentClassName, host.RootComponentClassName); 1362Assert.Equal(expectedRootComponentClassName, host.RootComponentClassName); 1667Assert.Equal(component.GetType().FullName, host.RootComponentClassName); 1669Assert.Throws<InvalidOperationException>(() => host.Container.Add(new RootDesignerComponent(), host.RootComponentClassName)); 2228Assert.Same(baseClassName, host.RootComponentClassName); 2536Assert.Null(host.RootComponentClassName); 2548Assert.Null(host.RootComponentClassName); 2560Assert.Null(host.RootComponentClassName);
System\ComponentModel\Design\DesignSurfaceTests.cs (7)
27Assert.Null(surface.Host.RootComponentClassName); 66Assert.Null(surface.Host.RootComponentClassName); 88Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName); 110Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName); 157Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName); 424Assert.Null(host.RootComponentClassName); 936Assert.Equal(typeof(RootDesignerComponent).FullName, host.RootComponentClassName);
System\ComponentModel\Design\SiteNestedContainerTests.cs (14)
84Assert.Equal(componentName, host.RootComponentClassName); 183Assert.Null(host.RootComponentClassName); 194Assert.Null(host.RootComponentClassName); 205Assert.Null(host.RootComponentClassName); 216Assert.Null(host.RootComponentClassName); 240Assert.Equal("name1", host.RootComponentClassName); 252Assert.Equal("name1", host.RootComponentClassName); 263Assert.Equal("name1", host.RootComponentClassName); 274Assert.Equal("name1", host.RootComponentClassName); 584Assert.Equal(component.GetType().FullName, host.RootComponentClassName); 586Assert.Throws<InvalidOperationException>(() => container.Add(new RootDesignerComponent(), host.RootComponentClassName)); 678Assert.Null(host.RootComponentClassName); 688Assert.Null(host.RootComponentClassName); 698Assert.Null(host.RootComponentClassName);