Base:
property
Site
System.ComponentModel.Component.Site
Implemented interface member:
property
Site
System.ComponentModel.IComponent.Site
2 overrides of Site
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.cs (1)
885public override ISite? Site
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
173public override ISite? Site
136 writes to Site
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
901base.Site = value;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1652_control.Site = new AxSourcingSite(_control, _clientSite, "ControlAxSourcingSite"); 1656_control.Site = null;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
392ControlInternal.Site = value is not null
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
179base.Site = value;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1105_dataGridViewPrivateCopy.Site = dataGridView.Site;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1478_miniToolStrip.Site = strip.Site;
System.Windows.Forms.Design.Tests (16)
ControlDesignerTests.cs (2)
214_designer._control.Site = mockSite.Object; 219childControl.Site = mockSite.Object;
SplitContainerDesignerTests.cs (2)
37splitContainer.Site = mockSite.Object; 57splitContainer.Site = mockSite.Object;
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (2)
41_toolStripDropDownMenu.Site = mockSite.Object; 143_toolStripDropDown.Site = _toolStripDropDownMenu.Site;
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
162control.Site = new MockSite(control, designMode: true);
System\Windows\Forms\Design\InheritanceUITests.cs (1)
27_sitedChildControl = new Control { Parent = _control, Site = new Mock<ISite>().Object };
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (3)
34toolStripContainer.Site = mockSite.Object; 37splitContainer.Site = mockSite.Object; 40splitterPanel.Site = mockSite.Object;
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
35_toolStripContainer.Site = mockSite.Object;
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (1)
24_numericUpDown.Site = site.Object;
TestControlDesigner.Mocks.cs (1)
31_control.Site = _mockSite.Object;
ToolStripDesignerTests.cs (1)
38toolStrip.Site = mockSite.Object;
ToolStripDropDownDesignerTest.cs (1)
33toolStripDropDown.Site = mockSite.Object;
System.Windows.Forms.Tests (113)
System\Windows\Forms\ButtonBaseTests.cs (19)
569Site = mockSite.Object, 615Site = mockSite.Object, 661Site = mockSite.Object, 868Site = mockSite.Object, 959Site = mockSite.Object 1513Site = mockSite.Object 1667Site = mockSite.Object 2849Site = mockSite.Object, 2961Site = mockSite.Object 4395Site = mockSite.Object, 4486Site = mockSite.Object 5165Site = mockSite.Object 5269Site = mockSite.Object 6281Site = mockSite.Object 6372Site = mockSite.Object 6994Site = mockSite.Object 7098Site = mockSite.Object 7424Site = mockSite.Object 7528Site = mockSite.Object
System\Windows\Forms\ButtonTests.cs (2)
2424Site = mockSite.Object 2513Site = mockSite.Object
System\Windows\Forms\ControlTests.Methods.cs (3)
2535Site = mockSite.Object 2586Site = mockSite.Object 2654Site = mockSite.Object
System\Windows\Forms\ControlTests.Properties.cs (20)
9302Site = mockSite.Object 9370Site = mockSite.Object, 10548Site = mockSite.Object 10607Site = mockSite.Object 10651Site = value 10657control.Site = value; 10675control.Site = value; 10683control.Site = value; 10704Site = mockSite.Object 10707control.Site = value; 10711control.Site = value; 10809control.Site = mockSite1.Object; 10825control.Site = mockSite1.Object; 10841control.Site = mockSite2.Object; 10857control.Site = mockSite3.Object; 10873control.Site = mockSite4.Object; 10991control.Site = mockSite1.Object; 11007control.Site = mockSite1.Object; 11023control.Site = mockSite2.Object; 11039control.Site = mockSite3.Object;
System\Windows\Forms\DataGridViewElementTests.cs (1)
286Site = mockSite.Object
System\Windows\Forms\MdiClientTests.cs (4)
355Site = mockSite.Object, 420Site = mockSite.Object, 847Site = mockSite.Object 1009Site = mockSite.Object
System\Windows\Forms\PanelTests.cs (1)
1087Site = mockSite.Object,
System\Windows\Forms\PictureBoxTests.cs (8)
830Site = mockSite.Object 845pictureBox.Site = null; 862Site = mockSite.Object 875pictureBox.Site = null; 2045Site = mockSite.Object 2060pictureBox.Site = null; 2077Site = mockSite.Object 2090pictureBox.Site = null;
System\Windows\Forms\ProgressBarTests.cs (3)
147Site = mockSite.Object 805Site = mockSite.Object, 866Site = mockSite.Object,
System\Windows\Forms\TabControl.ControlCollectionTests.cs (6)
663Site = mockSite.Object 693Site = mockValueSite.Object 697Site = mockSite.Object 720Site = mockSite.Object 821Site = mockSite.Object 1521Site = mockSite.Object
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (16)
660Site = mockSite.Object 692Site = mockValueSite.Object 696Site = mockSite.Object 721Site = mockSite.Object 827Site = mockSite.Object 2615Site = mockSite.Object 2645Site = mockValueSite.Object 2649Site = mockSite.Object 2672Site = mockSite.Object 2853Site = mockSite.Object 3404Site = mockSite.Object 3492Site = mockSite.Object 3608Site = mockSite.Object 3803Site = mockSite.Object 3889Site = mockSite.Object 4641Site = mockSite.Object
System\Windows\Forms\TabControlTests.cs (1)
205Site = mockSite.Object
System\Windows\Forms\TabPageTests.cs (15)
708Site = mockSite.Object, 750Site = mockSite.Object, 793Site = mockSite.Object, 1165Site = mockSite.Object 1317Site = mockSite.Object 1437Site = mockSite.Object 1554Site = mockSite.Object 1695Site = mockSite.Object 1809Site = mockSite.Object 2836Site = mockSite.Object 2950Site = mockSite.Object 3069Site = mockSite.Object 3208Site = mockSite.Object 3326Site = mockSite.Object 3438Site = mockSite.Object
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1225Site = mockSite.Object, 1363Site = mockSite.Object,
System\Windows\Forms\ToolStripTests.cs (5)
1776Site = mockSite.Object, 1912Site = mockSite.Object, 2129Site = mockSite.Object, 2135Site = mockSite.Object, 4257Site = mockSite.Object
System\Windows\Forms\TreeViewTests.cs (3)
537Site = mockSite.Object, 576Site = mockSite.Object, 6107Site = mockSite.Object
System\Windows\Forms\UserControlTests.cs (2)
282Site = mockSite.Object 374Site = mockSite.Object
TextBoxBaseTests.cs (2)
1475Site = mockSite.Object, 1506Site = mockSite.Object,
394 references to Site
System.Windows.Forms (37)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (4)
121string? name = control.Site is { } site ? site.Name : control.Name; 295if (control.Site is not { } site 333Debug.Assert(_parent.Site is null, "Parent is sited but we could not find IContainer"); 383=> _parent.Site is { } site && site.DesignMode ? site.Container : null;
System\Windows\Forms\Control.cs (10)
572ambientProperties = Site is not null ? Site.GetService<AmbientProperties>() : GetService<AmbientProperties>(); 2348return (control.Site is not null && control.Site.DesignMode) || control.Parent is null ? 2349control.Site : GetSitedParentSite(control.Parent); 2596if (string.IsNullOrEmpty(name) && Site is not null) 2598name = Site.Name; 5247Site is { } site 11160MarshalStringToMessage(Site?.Name ?? Name ?? string.Empty, ref m); 12584ISite? site = Site;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6122ISite? site = Site;
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (2)
24public bool OwnerIsDesignMode => _group.ListView?.Site is not null && _group.ListView.Site.DesignMode;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
1166if ((_listView.Site is null || !_listView.Site.DesignMode) && _group is not null)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridServiceProvider.cs (1)
27service ??= _ownerPropertyGrid.Site?.GetService(serviceType);
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (2)
52ISite? site = _owner.Site; 55ISite? siteTab = tabPage.Site;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
815if (toolStripToDrag.Site is not null && toolStripToDrag.Site.DesignMode && IsHandleCreated)
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (3)
312if (_associatedContainer is not null || ctl.Site is not ISite site) 355=> ctl.Site is not null ? ctl.Site.Name ?? string.Empty : ctl.Name ?? string.Empty;
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (1)
94ISite? site = ctl.Site;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
1119bool dt = Site?.DesignMode ?? false; 1120bool parentDt = ParentInternal.Site?.DesignMode ?? false;
System\Windows\Forms\Layout\FlowLayout.cs (2)
310if (container is Control flp && flp.Site is not null && flp.Site.DesignMode)
System\Windows\Forms\MDI\MDIClient.cs (5)
102ISite? site = ParentInternal?.Site; 172ISite? site = ParentInternal?.Site; 224|| ParentInternal?.Site?.DesignMode == true) 333if (ParentInternal is not null && ParentInternal.Site is not null && ParentInternal.Site.DesignMode && Handle != IntPtr.Zero)
System.Windows.Forms.Design (128)
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
25_serviceProvider = _toolStripContainer.Site;
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
92if (parentControl.Site is not null)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (5)
80_serviceProviderSource = source.Site; 223if (c.Site is not null && !(c.Site is INestedSite) && _destHost is not null) 305_serviceProviderTarget = dragTarget.Site; 643_serviceProviderTarget = target.Site;
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
119_resizeTransaction = host.CreateTransaction(string.Format(SR.TableLayoutPanelRowColResize, (isColumn ? "Column" : "Row"), _designer.Control.Site.Name));
System\Windows\Forms\Design\CommandSet.cs (1)
1792while (parent is not null && parent.Site is null)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (6)
129if (control.Site is not null && control.Site.DesignMode) 280if (parent is not null && parent.Site is not null) 410if (child.Site is null || child.Site.Container != control.Site!.Container)
System\Windows\Forms\Design\ControlCommandSet.cs (8)
300if (obj is not Control control || control.Site is null) 388if (currentSnapProp.PropertyType == typeof(bool) && c.Site is not null && c.Site.Container == container) 1409if (nextControl is not null && nextControl.Site is not null) 1411controlSiteContainer = DesignerUtils.CheckForNestedContainer(nextControl.Site.Container); // ...necessary to support SplitterPanel components 1414if (nextControl is null || nextControl.Site is null || controlSiteContainer != container) 1461if (ctl.Site is not null && ctl.Site.Container == ctl.Container)
System\Windows\Forms\Design\ControlDesigner.cs (2)
117if (control.Site is not null) 1120ISite? site = control.Site;
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
73_realCollection[i].Site is not null &&
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (13)
57if (_liveDataGridView.Site.TryGetService(out IUIService? uiService)) 130_liveDataGridView.Site?.Container?.Add(column, column.Name); 134IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>(); 156IDesignerHost? host = _liveDataGridView.Site?.GetService<IDesignerHost>(); 521if (!_liveDataGridView.Site.TryGetService(out IComponentChangeService? changeService)) 585IHelpService? helpService = _liveDataGridView.Site?.GetService<IHelpService>(); 636if (_liveDataGridView.Site.TryGetService(out IDesignerHost? host)) 639nameCreationService = _liveDataGridView.Site.GetService<INameCreationService>(); 651IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>(); 661if (!_liveDataGridView.Site.TryGetService(out IDesignerHost? host)) 777IDesignerHost? host = _liveDataGridView.Site?.GetService<IDesignerHost>(); 779INameCreationService? nameCreationService = _liveDataGridView.Site?.GetService<INameCreationService>(); 795IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (11)
116ITypeResolutionService? tr = _liveDataGridView?.Site?.GetService<ITypeResolutionService>(); 182IComponentChangeService? changeService = _liveDataGridView!.Site?.GetService<IComponentChangeService>(); 184IContainer? currentContainer = _liveDataGridView.Site?.Container; 280IUIService? uiService = _liveDataGridView?.Site?.GetService<IUIService>(); 790IHelpService? helpService = _liveDataGridView?.Site?.GetService<IHelpService>(); 797IUIService? uiService = _liveDataGridView?.Site?.GetService<IUIService>(); 875ITypeResolutionService? tr = _liveDataGridView?.Site?.GetService<ITypeResolutionService>(); 1092IComponentChangeService? newComponentChangeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1105_dataGridViewPrivateCopy.Site = dataGridView.Site; 1152_propertyGrid1.Site = new DataGridViewComponentPropertyGridSite(_liveDataGridView.Site, _liveDataGridView); 1319get => Owner._liveDataGridView?.Site;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (5)
52if (dataGridView is not null && dataGridView.Site is not null) 54host = dataGridView.Site.GetService<IDesignerHost>(); 55nameCreationService = dataGridView.Site.GetService<INameCreationService>(); 71if (dataGridView is not null && dataGridView.Site is not null) 73IUIService? uiService = dataGridView.Site.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewDesigner.cs (16)
42IComponentChangeService? componentChangeService = dataGridView.Site?.GetService<IComponentChangeService>(); 97if (dataGridView.Site.TryGetService(out IComponentChangeService? ccs)) 341IContainer? currentContainer = dataGridView.Site?.Container; 400IContainer? currentContainer = dataGridView.Site?.Container; 451ISite? site = dataGridView.Site; 532ISite? site = dataGridView.Site; 843IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 845IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 933IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 948IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 979IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 994IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1025IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 1040IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1071IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 1086IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>();
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (1)
39if (parent.Site is not ISite site)
System\Windows\Forms\Design\InheritanceUI.cs (2)
70if (child.Site is null) 95if (child.Site is null)
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
481if (selectedControl is not null && selectedControl.Site is null) 879child.Site is not null && child.Site.Container == container) 1276ReParentControls(Control, selectedControls, string.Format(SR.ParentControlDesignerLassoShortcutRedo, Control.Site.Name), host);
System\Windows\Forms\Design\StyleEditorForm.cs (1)
102var host = _tableLayoutPanel.Site.GetService<IDesignerHost>();
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (13)
505trans = host.CreateTransaction(string.Format(SR.BehaviorServiceCopyControl, control.Site.Name)); 524trans = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerControlsSwapped, control.Site.Name, existingControl.Site.Name)); 552trans = host.CreateTransaction(string.Format(SR.BehaviorServiceMoveControl, control.Site.Name)); 1637if (host is not null && Table.Site is not null) 1642: SR.TableLayoutPanelDesignerAddColumnUndoUnit, Table.Site.Name)); 1752if (host is not null && Table.Site is not null) 1757Table.Site.Name)); 1876if (host is not null && Table.Site is not null) 1880Table.Site.Name)); 1980if (host is not null && Table.Site is not null) 1982using DesignerTransaction t = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerChangeSizeTypeUndoUnit, Table.Site.Name)); 2218_realCollection[i].Site is not null &&
System\Windows\Forms\Design\TabOrder.cs (2)
383ISite? site = parent.Site; 448if (control.Site is not ISite site || site.Container != _host)
System\Windows\Forms\Design\ToolStripActionList.cs (1)
121DesignerActionUIService? actionUIService = (DesignerActionUIService?)_toolStrip.Site?.GetService(typeof(DesignerActionUIService));
System\Windows\Forms\Design\ToolStripCodeDomSerializer.cs (2)
25if (item.Site is not null && toolStrip.Site is not null && item.Site.Container == toolStrip.Site.Container)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
201_toolStripContextMenu ??= new BaseContextMenuStrip(ToolStrip.Site) 986if (addingItem.Owner.Site is null)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (4)
286if (item.Owner.Site is not null) 298if (parentControl.Site is not null) 783if (parent.Site is not null) 843if (parent.Site is not null)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (8)
354if ((parentControls[c].Site is not null && parentControls[c].TabIndex != targetIndex) || hitCtl) 1064if (selSvc.PrimarySelection is ToolStripDropDown dropDown && dropDown.Site is not null) 1402&& parentToMoveOn.OwnerItem.Owner?.Site is not null 1444&& parentToMoveOn.OwnerItem.Owner?.Site is not null 1715if (!(next is Control nextControl) || nextControl.Site is null || nextControl.Site.Container != container) 1986if (ctl.Site is not null && ctl.Site.Container == container && !(ctl is ToolStripPanel))
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
40if (parent is not null && parent.Site is null)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (11)
234if (mainStrip is not null && mainStrip.Site is not null && !(mainStrip is ContextMenuStrip)) 728if (MenuItem.DropDown.Site is null) 1160if (ddi.DropDown.Site is not null || ddi.DropDownItems.Count == 1) 1587if (MenuItem.DropDown.Site is not null) 1679if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1698if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1716if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1727if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1744if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1756if (IsOnContextMenu && MenuItem.DropDown.Site is not null) 1782if (IsOnContextMenu && MenuItem.DropDown.Site is not null)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1478_miniToolStrip.Site = strip.Site;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (4)
120if (TreeView is not null && TreeView.Site is not null) 122IDictionaryService dictionaryService = (IDictionaryService)TreeView.Site.GetService(typeof(IDictionaryService)); 144if (TreeView is not null && TreeView.Site is not null) 146TreeView.Site.TryGetService(out IDictionaryService dictionaryService);
System.Windows.Forms.Design.Tests (2)
ControlDesignerTests.cs (1)
231Mock<DesignerFrame> mockDesignerFrame = new(_designer._control.Site!) { CallBase = true };
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (1)
143_toolStripDropDown.Site = _toolStripDropDownMenu.Site;
System.Windows.Forms.Tests (226)
System\Windows\Forms\ButtonBaseTests.cs (1)
106Assert.Null(control.Site);
System\Windows\Forms\ButtonTests.cs (1)
104Assert.Null(control.Site);
System\Windows\Forms\CheckBoxTests.cs (1)
106Assert.Null(control.Site);
System\Windows\Forms\ComboBoxTests.cs (1)
119Assert.Null(control.Site);
System\Windows\Forms\ContainerControlTests.cs (1)
109Assert.Null(control.Site);
System\Windows\Forms\ControlTests.cs (5)
87Assert.Null(control.Site); 176Assert.Null(control.Site); 272Assert.Null(control.Site); 368Assert.Null(control.Site); 464Assert.Null(control.Site);
System\Windows\Forms\ControlTests.Properties.cs (15)
10653Assert.Same(value, control.Site); 10658Assert.Same(value, control.Site); 10676Assert.Same(value, control.Site); 10684Assert.Same(value, control.Site); 10708Assert.Same(value, control.Site); 10712Assert.Same(value, control.Site); 10810Assert.Same(mockSite1.Object, control.Site); 10826Assert.Same(mockSite1.Object, control.Site); 10842Assert.Same(mockSite2.Object, control.Site); 10858Assert.Same(mockSite3.Object, control.Site); 10874Assert.Same(mockSite4.Object, control.Site); 10992Assert.Same(mockSite1.Object, control.Site); 11008Assert.Same(mockSite1.Object, control.Site); 11024Assert.Same(mockSite2.Object, control.Site); 11040Assert.Same(mockSite3.Object, control.Site);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
115Assert.Null(control.Site);
System\Windows\Forms\DateTimePickerTests.cs (1)
111Assert.Null(control.Site);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
145Assert.Null(control.Site);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
112Assert.Null(control.Site);
System\Windows\Forms\DomainUpDownTests.cs (1)
135_sub.Site.Should().BeNull();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
103Assert.Null(control.Site);
System\Windows\Forms\FormTests.cs (1)
147Assert.Null(control.Site);
System\Windows\Forms\GroupBoxTests.cs (1)
91Assert.Null(control.Site);
System\Windows\Forms\HScrollBarTests.cs (1)
103Assert.Null(control.Site);
System\Windows\Forms\LabelTests.cs (1)
100Assert.Null(control.Site);
System\Windows\Forms\ListBoxTests.cs (1)
119Assert.Null(control.Site);
System\Windows\Forms\ListControlTests.cs (1)
99Assert.Null(control.Site);
System\Windows\Forms\ListViewTests.cs (1)
134Assert.Null(control.Site);
System\Windows\Forms\MdiClientTests.cs (1)
76Assert.Null(control.Site);
System\Windows\Forms\MenuStripTests.cs (1)
133Assert.Null(control.Site);
System\Windows\Forms\MonthCalendarTests.cs (1)
125Assert.Null(control.Site);
System\Windows\Forms\PictureBoxTests.cs (1)
98Assert.Null(control.Site);
System\Windows\Forms\ProgressBarTests.cs (1)
89Assert.Null(control.Site);
System\Windows\Forms\RadioButtonTests.cs (1)
104Assert.Null(control.Site);
System\Windows\Forms\RichTextBoxTests.cs (1)
123Assert.Null(control.Site);
System\Windows\Forms\ScrollableControlTests.cs (1)
102Assert.Null(control.Site);
System\Windows\Forms\ScrollBarTests.cs (1)
92Assert.Null(control.Site);
System\Windows\Forms\SplitterTests.cs (1)
92Assert.Null(control.Site);
System\Windows\Forms\StatusStripTests.cs (1)
134Assert.Null(control.Site);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (47)
73Assert.Null(value1.Site); 91Assert.Null(value1.Site); 95Assert.Null(value2.Site); 120Assert.Null(value1.Site); 123Assert.Null(value2.Site); 203Assert.Null(value1.Site); 230Assert.Null(value1.Site); 234Assert.Null(value2.Site); 271Assert.Null(value1.Site); 275Assert.Null(value2.Site); 370Assert.Null(value1.Site); 391Assert.Null(value1.Site); 395Assert.Null(value2.Site); 426Assert.Null(value1.Site); 429Assert.Null(value2.Site); 518Assert.Null(value1.Site); 548Assert.Null(value1.Site); 552Assert.Null(value2.Site); 595Assert.Null(value1.Site); 599Assert.Null(value2.Site); 668Assert.NotNull(value.Site); 702Assert.Same(mockValueSite.Object, value.Site); 725Assert.Null(value.Site); 926Assert.Null(value1.Site); 930Assert.Null(value2.Site); 946Assert.Null(value1.Site); 950Assert.Null(value2.Site); 966Assert.Null(value1.Site); 970Assert.Null(value2.Site); 1038Assert.Null(value1.Site); 1042Assert.Null(value2.Site); 1061Assert.Null(value1.Site); 1065Assert.Null(value2.Site); 1087Assert.Null(value1.Site); 1091Assert.Null(value2.Site); 1156Assert.Null(value1.Site); 1160Assert.Null(value2.Site); 1179Assert.Null(value1.Site); 1183Assert.Null(value2.Site); 1202Assert.Null(value1.Site); 1206Assert.Null(value2.Site); 1275Assert.Null(value1.Site); 1279Assert.Null(value2.Site); 1298Assert.Null(value1.Site); 1302Assert.Null(value2.Site); 1324Assert.Null(value1.Site); 1328Assert.Null(value2.Site);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (86)
59Assert.Null(value1.Site); 78Assert.Null(value1.Site); 82Assert.Null(value2.Site); 108Assert.Null(value1.Site); 111Assert.Null(value2.Site); 192Assert.Null(value1.Site); 220Assert.Null(value1.Site); 224Assert.Null(value2.Site); 262Assert.Null(value1.Site); 266Assert.Null(value2.Site); 362Assert.Null(value1.Site); 384Assert.Null(value1.Site); 388Assert.Null(value2.Site); 420Assert.Null(value1.Site); 423Assert.Null(value2.Site); 513Assert.Null(value1.Site); 544Assert.Null(value1.Site); 548Assert.Null(value2.Site); 592Assert.Null(value1.Site); 596Assert.Null(value2.Site); 667Assert.NotNull(value.Site); 703Assert.Same(mockValueSite.Object, value.Site); 728Assert.Null(value.Site); 1006Assert.Null(value1.Site); 1024Assert.Null(value1.Site); 1028Assert.Null(value2.Site); 1053Assert.Null(value1.Site); 1056Assert.Null(value2.Site); 2001Assert.Null(value1.Site); 2020Assert.Null(value1.Site); 2024Assert.Null(value2.Site); 2052Assert.Null(value1.Site); 2055Assert.Null(value2.Site); 2129Assert.Null(value1.Site); 2157Assert.Null(value1.Site); 2161Assert.Null(value2.Site); 2201Assert.Null(value1.Site); 2205Assert.Null(value2.Site); 2305Assert.Null(value1.Site); 2327Assert.Null(value1.Site); 2331Assert.Null(value2.Site); 2365Assert.Null(value1.Site); 2368Assert.Null(value2.Site); 2462Assert.Null(value1.Site); 2493Assert.Null(value1.Site); 2497Assert.Null(value2.Site); 2543Assert.Null(value1.Site); 2547Assert.Null(value2.Site); 2620Assert.NotNull(value.Site); 2654Assert.Same(mockValueSite.Object, value.Site); 2677Assert.Null(value.Site); 3047Assert.Null(value1.Site); 3066Assert.Null(value1.Site); 3070Assert.Null(value2.Site); 3098Assert.Null(value1.Site); 3101Assert.Null(value2.Site); 4013Assert.Null(value1.Site); 4017Assert.Null(value2.Site); 4034Assert.Null(value1.Site); 4038Assert.Null(value2.Site); 4055Assert.Null(value1.Site); 4059Assert.Null(value2.Site); 4128Assert.Null(value1.Site); 4132Assert.Null(value2.Site); 4152Assert.Null(value1.Site); 4156Assert.Null(value2.Site); 4179Assert.Null(value1.Site); 4183Assert.Null(value2.Site); 4251Assert.Null(value1.Site); 4255Assert.Null(value2.Site); 4275Assert.Null(value1.Site); 4279Assert.Null(value2.Site); 4299Assert.Null(value1.Site); 4303Assert.Null(value2.Site); 4375Assert.Null(value1.Site); 4379Assert.Null(value2.Site); 4399Assert.Null(value1.Site); 4403Assert.Null(value2.Site); 4426Assert.Null(value1.Site); 4430Assert.Null(value2.Site); 4732Assert.Null(value1.Site); 4736Assert.Null(value2.Site); 4752Assert.Null(value1.Site); 4756Assert.Null(value2.Site); 4772Assert.Null(value1.Site); 4776Assert.Null(value2.Site);
System\Windows\Forms\TabControlTests.cs (1)
99Assert.Null(control.Site);
System\Windows\Forms\TabPageTests.cs (2)
108Assert.Null(control.Site); 217Assert.Null(control.Site);
System\Windows\Forms\ToolStripControlHostTests.cs (31)
1789Assert.NotSame(mockSite.Object, c.Site); 1790Assert.Same(c, c.Site.Component); 1791Assert.Same(container, c.Site.Container); 1792Assert.Equal(designMode, c.Site.DesignMode); 1793Assert.Equal(name, c.Site.Name); 1799Assert.NotSame(mockSite.Object, c.Site); 1800Assert.Same(c, c.Site.Component); 1801Assert.Same(container, c.Site.Container); 1802Assert.Equal(designMode, c.Site.DesignMode); 1803Assert.Equal(name, c.Site.Name); 1809Assert.Null(c.Site); 1828ISite oldSite = c.Site; 1849ISite oldSite = c.Site; 1870ISite oldSite = c.Site; 1899c.Site.Name = value; 1901Assert.Equal(expected, c.Site.Name); 1906c.Site.Name = value; 1908Assert.Equal(expected, c.Site.Name); 1928ISite oldSite = c.Site; 1960Assert.Same(result, c.Site.GetService(typeof(int))); 1979Assert.Same(c.Site, c.Site.GetService(typeof(IDictionaryService))); 1997ISite oldSite = c.Site; 2018Assert.Throws<ArgumentNullException>("service", () => c.Site.GetService(null)); 2037IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2057IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2079IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2098IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2118IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2138IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2170IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
141Assert.Null(control.Site);
System\Windows\Forms\ToolStripPanelTests.cs (1)
106Assert.Null(control.Site);
System\Windows\Forms\ToolStripTests.cs (2)
149Assert.Null(control.Site); 304Assert.Null(control.Site);
System\Windows\Forms\TreeViewTests.cs (1)
114Assert.Null(control.Site);
System\Windows\Forms\UpDownBaseTests.cs (1)
118Assert.Null(control.Site);
System\Windows\Forms\UserControlTests.cs (1)
109Assert.Null(control.Site);
System\Windows\Forms\VScrollBarTests.cs (1)
102Assert.Null(control.Site);
TextBoxTests.cs (1)
108Assert.Null(control.Site);
TrackBarTests.cs (1)
95Assert.Null(control.Site);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
325pe.Graphics.DrawString($"Design time \n{Control.Site?.Name} !", Control.Font, SystemBrushes.WindowText, new PointF(12, 12));