Base:
property
Site
System.Windows.Forms.Control.Site
25 writes to Site
System.Windows.Forms.Tests (25)
System\Windows\Forms\AxHostTests.cs (25)
269Site = mockSite.Object 612Site = mockSite1.Object 621control.Site = mockSite1.Object; 643control.Site = mockSite2.Object; 649control.Site = null; 676Site = mockSite1.Object 683control.Site = mockSite1.Object; 705control.Site = mockSite2.Object; 713control.Site = null; 740Site = mockSite1.Object 747control.Site = mockSite1.Object; 769control.Site = mockSite2.Object; 775control.Site = null; 818control.Site = mockSite1.Object; 827control.Site = mockSite1.Object; 855control.Site = mockSite2.Object; 864control.Site = null; 1795Site = mockSite.Object 1859Site = mockSite.Object 1912control.Site = mockSite.Object; 1967control.Site = mockSite.Object; 2024control.Site = mockSite.Object; 2088Site = mockSite.Object 2154Site = mockSite.Object 2225control.Site = mockSite.Object;
29 references to Site
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
138if (control.Site is { } site) 396if (control.Site is { } site && site.Container is { } container)
System\Windows\Forms\ActiveX\AxHost.cs (8)
825if (Site.TryGetService(out ISelectionService? selectionService)) 853if (Site.TryGetService(out ISelectionService? selectionService)) 968if (IsUserMode() || !Site.TryGetService(out ISelectionService? selectionService)) 1989if (Site.TryGetService(out IDesignerHost? host) && host.RootComponent is ContainerControl rootControl) 2071ISite? site = Site; 2391if (Site.TryGetService(out ISelectionService? selectionService) && selectionService.GetComponentSelected(this)) 2987if (Site.TryGetService(out IComponentChangeService? changeService)) 3018Site.TryGetService(out IDesignerHost? host);
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
509if (_host.Site.TryGetService(out IComponentChangeService? changeService))
System.Windows.Forms.Tests (18)
System\Windows\Forms\AxHostTests.cs (18)
105Assert.Null(control.Site); 199Assert.Null(control.Site); 614Assert.Same(mockSite1.Object, control.Site); 622Assert.Same(mockSite1.Object, control.Site); 644Assert.Same(mockSite2.Object, control.Site); 650Assert.Null(control.Site); 678Assert.Same(mockSite1.Object, control.Site); 684Assert.Same(mockSite1.Object, control.Site); 706Assert.Same(mockSite2.Object, control.Site); 714Assert.Null(control.Site); 742Assert.Same(mockSite1.Object, control.Site); 748Assert.Same(mockSite1.Object, control.Site); 770Assert.Same(mockSite2.Object, control.Site); 776Assert.Null(control.Site); 819Assert.Same(mockSite1.Object, control.Site); 828Assert.Same(mockSite1.Object, control.Site); 856Assert.Same(mockSite2.Object, control.Site); 865Assert.Null(control.Site);