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