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)
886public override ISite? Site
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
173public override ISite? Site
146 writes to Site
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
902base.Site = value;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1644_control.Site = new AxSourcingSite(_control, _clientSite, "ControlAxSourcingSite"); 1648_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)
1103_dataGridViewPrivateCopy.Site = dataGridView.Site;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1478_miniToolStrip.Site = strip.Site;
System.Windows.Forms.Design.Tests (26)
ControlDesignerTests.cs (2)
212_designer._control.Site = mockSite.Object; 217childControl.Site = mockSite.Object;
SplitContainerDesignerTests.cs (2)
39splitContainer.Site = mockSite.Object; 59splitContainer.Site = mockSite.Object;
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (2)
39_toolStripDropDownMenu.Site = mockSite.Object; 141_toolStripDropDown.Site = _toolStripDropDownMenu.Site;
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
160control.Site = new MockSite(control, designMode: true);
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
35_dataGridView.Site = mockSite.Object;
System\Windows\Forms\Design\DataGridViewDesignerTests.cs (1)
56_dataGridView.Site = site.Object;
System\Windows\Forms\Design\InheritanceUITests.cs (1)
27_sitedChildControl = new Control { Parent = _control, Site = new Mock<ISite>().Object };
System\Windows\Forms\Design\MaskedTextBoxDesignerActionListTests.cs (1)
35_maskedTextBox.Site = mockSite.Object;
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (3)
32toolStripContainer.Site = mockSite.Object; 35splitContainer.Site = mockSite.Object; 38splitterPanel.Site = mockSite.Object;
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (1)
22_textbox.Site = site.Object;
System\Windows\Forms\Design\ToolStripActionListTests.cs (2)
38_toolStrip.Site = mockSite.Object; 151Site = _toolStrip.Site
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
33_toolStripContainer.Site = mockSite.Object;
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializerTests.cs (1)
63dropDown.Site = mockSite.Object;
System\Windows\Forms\Design\ToolStripPanelDesignerTests.cs (2)
39ToolStripPanel toolStripPanel = new() { Site = _mockSite.Object }; 92toolStripPanel.Site = _mockSite.Object;
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (1)
22_numericUpDown.Site = site.Object;
System\Windows\Forms\Design\UserControlDocumentDesignerTests.cs (1)
72control.Site = mockSite.Object;
TestControlDesigner.Mocks.cs (1)
29_control.Site = _mockSite.Object;
ToolStripDesignerTests.cs (1)
40toolStrip.Site = mockSite.Object;
ToolStripDropDownDesignerTest.cs (1)
35toolStripDropDown.Site = mockSite.Object;
System.Windows.Forms.Tests (113)
System\Windows\Forms\ButtonBaseTests.cs (19)
571Site = mockSite.Object, 617Site = mockSite.Object, 663Site = mockSite.Object, 870Site = mockSite.Object, 961Site = mockSite.Object 1515Site = mockSite.Object 1669Site = mockSite.Object 2851Site = mockSite.Object, 2963Site = mockSite.Object 4397Site = mockSite.Object, 4488Site = mockSite.Object 5167Site = mockSite.Object 5271Site = mockSite.Object 6283Site = mockSite.Object 6374Site = mockSite.Object 6996Site = mockSite.Object 7100Site = mockSite.Object 7426Site = mockSite.Object 7530Site = mockSite.Object
System\Windows\Forms\ButtonTests.cs (2)
2426Site = mockSite.Object 2515Site = mockSite.Object
System\Windows\Forms\ControlTests.Methods.cs (3)
2504Site = mockSite.Object 2555Site = mockSite.Object 2623Site = mockSite.Object
System\Windows\Forms\ControlTests.Properties.cs (20)
9304Site = mockSite.Object 9372Site = mockSite.Object, 10550Site = mockSite.Object 10609Site = mockSite.Object 10653Site = value 10659control.Site = value; 10677control.Site = value; 10685control.Site = value; 10706Site = mockSite.Object 10709control.Site = value; 10713control.Site = value; 10811control.Site = mockSite1.Object; 10827control.Site = mockSite1.Object; 10843control.Site = mockSite2.Object; 10859control.Site = mockSite3.Object; 10875control.Site = mockSite4.Object; 10993control.Site = mockSite1.Object; 11009control.Site = mockSite1.Object; 11025control.Site = mockSite2.Object; 11041control.Site = mockSite3.Object;
System\Windows\Forms\DataGridViewElementTests.cs (1)
288Site = mockSite.Object
System\Windows\Forms\MdiClientTests.cs (4)
357Site = mockSite.Object, 422Site = mockSite.Object, 849Site = mockSite.Object 1011Site = mockSite.Object
System\Windows\Forms\PanelTests.cs (1)
1089Site = mockSite.Object,
System\Windows\Forms\PictureBoxTests.cs (8)
832Site = mockSite.Object 847pictureBox.Site = null; 864Site = mockSite.Object 877pictureBox.Site = null; 2047Site = mockSite.Object 2062pictureBox.Site = null; 2079Site = mockSite.Object 2092pictureBox.Site = null;
System\Windows\Forms\ProgressBarTests.cs (3)
149Site = mockSite.Object 807Site = mockSite.Object, 868Site = mockSite.Object,
System\Windows\Forms\TabControl.ControlCollectionTests.cs (6)
665Site = mockSite.Object 695Site = mockValueSite.Object 699Site = mockSite.Object 722Site = mockSite.Object 823Site = mockSite.Object 1523Site = mockSite.Object
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (16)
662Site = mockSite.Object 694Site = mockValueSite.Object 698Site = mockSite.Object 723Site = mockSite.Object 829Site = mockSite.Object 2617Site = mockSite.Object 2647Site = mockValueSite.Object 2651Site = mockSite.Object 2674Site = mockSite.Object 2855Site = mockSite.Object 3406Site = mockSite.Object 3494Site = mockSite.Object 3610Site = mockSite.Object 3805Site = mockSite.Object 3891Site = mockSite.Object 4643Site = mockSite.Object
System\Windows\Forms\TabControlTests.cs (1)
207Site = mockSite.Object
System\Windows\Forms\TabPageTests.cs (15)
710Site = mockSite.Object, 752Site = mockSite.Object, 795Site = mockSite.Object, 1167Site = mockSite.Object 1319Site = mockSite.Object 1439Site = mockSite.Object 1556Site = mockSite.Object 1697Site = mockSite.Object 1811Site = mockSite.Object 2838Site = mockSite.Object 2952Site = mockSite.Object 3071Site = mockSite.Object 3210Site = mockSite.Object 3328Site = mockSite.Object 3440Site = mockSite.Object
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1227Site = mockSite.Object, 1365Site = mockSite.Object,
System\Windows\Forms\ToolStripTests.cs (5)
1778Site = mockSite.Object, 1914Site = mockSite.Object, 2131Site = mockSite.Object, 2137Site = mockSite.Object, 4259Site = mockSite.Object
System\Windows\Forms\TreeViewTests.cs (3)
539Site = mockSite.Object, 578Site = mockSite.Object, 6109Site = mockSite.Object
System\Windows\Forms\UserControlTests.cs (2)
284Site = mockSite.Object 376Site = mockSite.Object
TextBoxBaseTests.cs (2)
1477Site = mockSite.Object, 1508Site = mockSite.Object,
397 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)
571ambientProperties = Site is not null ? Site.GetService<AmbientProperties>() : GetService<AmbientProperties>(); 2347return (control.Site is not null && control.Site.DesignMode) || control.Parent is null ? 2348control.Site : GetSitedParentSite(control.Parent); 2595if (string.IsNullOrEmpty(name) && Site is not null) 2597name = Site.Name; 5286Site is { } site 11191MarshalStringToMessage(Site?.Name ?? Name ?? string.Empty, ref m); 12614ISite? site = Site;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6126ISite? 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)
807if (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)
1118bool dt = Site?.DesignMode ?? false; 1119bool parentDt = ParentInternal.Site?.DesignMode ?? false;
System\Windows\Forms\Layout\FlowLayout.cs (2)
311if (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 (129)
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) 423if (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)
56if (_liveDataGridView.Site.TryGetService(out IUIService? uiService)) 129_liveDataGridView.Site?.Container?.Add(column, column.Name); 133IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>(); 155IDesignerHost? host = _liveDataGridView.Site?.GetService<IDesignerHost>(); 520if (!_liveDataGridView.Site.TryGetService(out IComponentChangeService? changeService)) 584IHelpService? helpService = _liveDataGridView.Site?.GetService<IHelpService>(); 635if (_liveDataGridView.Site.TryGetService(out IDesignerHost? host)) 638nameCreationService = _liveDataGridView.Site.GetService<INameCreationService>(); 650IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>(); 660if (!_liveDataGridView.Site.TryGetService(out IDesignerHost? host)) 770IDesignerHost? host = _liveDataGridView.Site?.GetService<IDesignerHost>(); 772INameCreationService? nameCreationService = _liveDataGridView.Site?.GetService<INameCreationService>(); 788IUIService? 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>(); 788IHelpService? helpService = _liveDataGridView?.Site?.GetService<IHelpService>(); 795IUIService? uiService = _liveDataGridView?.Site?.GetService<IUIService>(); 873ITypeResolutionService? tr = _liveDataGridView?.Site?.GetService<ITypeResolutionService>(); 1090IComponentChangeService? newComponentChangeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1103_dataGridViewPrivateCopy.Site = dataGridView.Site; 1150_propertyGrid1.Site = new DataGridViewComponentPropertyGridSite(_liveDataGridView.Site, _liveDataGridView); 1308get => 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; 842IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 844IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 921IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 936IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 964IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 979IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1007IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 1022IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1050IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 1065IComponentChangeService? 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)); 1973if (host is not null && Table.Site is not null) 1975using DesignerTransaction t = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerChangeSizeTypeUndoUnit, Table.Site.Name)); 2211_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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
815if (parentStrip is not null && parentStrip.Site is not null)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
201_toolStripContextMenu ??= new BaseContextMenuStrip(ToolStrip.Site) 985if (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 (4)
ControlDesignerTests.cs (1)
229Mock<DesignerFrame> mockDesignerFrame = new(_designer._control.Site!) { CallBase = true };
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (1)
141_toolStripDropDown.Site = _toolStripDropDownMenu.Site;
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
151Site = _toolStrip.Site
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializerTests.cs (1)
44mockParent.Setup(p => p.Site).Returns((ISite?)null);
System.Windows.Forms.Tests (226)
System\Windows\Forms\ButtonBaseTests.cs (1)
108Assert.Null(control.Site);
System\Windows\Forms\ButtonTests.cs (1)
106Assert.Null(control.Site);
System\Windows\Forms\CheckBoxTests.cs (1)
108Assert.Null(control.Site);
System\Windows\Forms\ComboBoxTests.cs (1)
121Assert.Null(control.Site);
System\Windows\Forms\ContainerControlTests.cs (1)
111Assert.Null(control.Site);
System\Windows\Forms\ControlTests.cs (5)
89Assert.Null(control.Site); 178Assert.Null(control.Site); 274Assert.Null(control.Site); 370Assert.Null(control.Site); 466Assert.Null(control.Site);
System\Windows\Forms\ControlTests.Properties.cs (15)
10655Assert.Same(value, control.Site); 10660Assert.Same(value, control.Site); 10678Assert.Same(value, control.Site); 10686Assert.Same(value, control.Site); 10710Assert.Same(value, control.Site); 10714Assert.Same(value, control.Site); 10812Assert.Same(mockSite1.Object, control.Site); 10828Assert.Same(mockSite1.Object, control.Site); 10844Assert.Same(mockSite2.Object, control.Site); 10860Assert.Same(mockSite3.Object, control.Site); 10876Assert.Same(mockSite4.Object, control.Site); 10994Assert.Same(mockSite1.Object, control.Site); 11010Assert.Same(mockSite1.Object, control.Site); 11026Assert.Same(mockSite2.Object, control.Site); 11042Assert.Same(mockSite3.Object, control.Site);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
117Assert.Null(control.Site);
System\Windows\Forms\DateTimePickerTests.cs (1)
113Assert.Null(control.Site);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
147Assert.Null(control.Site);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
114Assert.Null(control.Site);
System\Windows\Forms\DomainUpDownTests.cs (1)
137_sub.Site.Should().BeNull();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
105Assert.Null(control.Site);
System\Windows\Forms\FormTests.cs (1)
149Assert.Null(control.Site);
System\Windows\Forms\GroupBoxTests.cs (1)
93Assert.Null(control.Site);
System\Windows\Forms\HScrollBarTests.cs (1)
105Assert.Null(control.Site);
System\Windows\Forms\LabelTests.cs (1)
102Assert.Null(control.Site);
System\Windows\Forms\ListBoxTests.cs (1)
121Assert.Null(control.Site);
System\Windows\Forms\ListControlTests.cs (1)
101Assert.Null(control.Site);
System\Windows\Forms\ListViewTests.cs (1)
136Assert.Null(control.Site);
System\Windows\Forms\MdiClientTests.cs (1)
78Assert.Null(control.Site);
System\Windows\Forms\MenuStripTests.cs (1)
135Assert.Null(control.Site);
System\Windows\Forms\MonthCalendarTests.cs (1)
127Assert.Null(control.Site);
System\Windows\Forms\PictureBoxTests.cs (1)
100Assert.Null(control.Site);
System\Windows\Forms\ProgressBarTests.cs (1)
91Assert.Null(control.Site);
System\Windows\Forms\RadioButtonTests.cs (1)
106Assert.Null(control.Site);
System\Windows\Forms\RichTextBoxTests.cs (1)
125Assert.Null(control.Site);
System\Windows\Forms\ScrollableControlTests.cs (1)
104Assert.Null(control.Site);
System\Windows\Forms\ScrollBarTests.cs (1)
94Assert.Null(control.Site);
System\Windows\Forms\SplitterTests.cs (1)
94Assert.Null(control.Site);
System\Windows\Forms\StatusStripTests.cs (1)
136Assert.Null(control.Site);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (47)
75Assert.Null(value1.Site); 93Assert.Null(value1.Site); 97Assert.Null(value2.Site); 122Assert.Null(value1.Site); 125Assert.Null(value2.Site); 205Assert.Null(value1.Site); 232Assert.Null(value1.Site); 236Assert.Null(value2.Site); 273Assert.Null(value1.Site); 277Assert.Null(value2.Site); 372Assert.Null(value1.Site); 393Assert.Null(value1.Site); 397Assert.Null(value2.Site); 428Assert.Null(value1.Site); 431Assert.Null(value2.Site); 520Assert.Null(value1.Site); 550Assert.Null(value1.Site); 554Assert.Null(value2.Site); 597Assert.Null(value1.Site); 601Assert.Null(value2.Site); 670Assert.NotNull(value.Site); 704Assert.Same(mockValueSite.Object, value.Site); 727Assert.Null(value.Site); 928Assert.Null(value1.Site); 932Assert.Null(value2.Site); 948Assert.Null(value1.Site); 952Assert.Null(value2.Site); 968Assert.Null(value1.Site); 972Assert.Null(value2.Site); 1040Assert.Null(value1.Site); 1044Assert.Null(value2.Site); 1063Assert.Null(value1.Site); 1067Assert.Null(value2.Site); 1089Assert.Null(value1.Site); 1093Assert.Null(value2.Site); 1158Assert.Null(value1.Site); 1162Assert.Null(value2.Site); 1181Assert.Null(value1.Site); 1185Assert.Null(value2.Site); 1204Assert.Null(value1.Site); 1208Assert.Null(value2.Site); 1277Assert.Null(value1.Site); 1281Assert.Null(value2.Site); 1300Assert.Null(value1.Site); 1304Assert.Null(value2.Site); 1326Assert.Null(value1.Site); 1330Assert.Null(value2.Site);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (86)
61Assert.Null(value1.Site); 80Assert.Null(value1.Site); 84Assert.Null(value2.Site); 110Assert.Null(value1.Site); 113Assert.Null(value2.Site); 194Assert.Null(value1.Site); 222Assert.Null(value1.Site); 226Assert.Null(value2.Site); 264Assert.Null(value1.Site); 268Assert.Null(value2.Site); 364Assert.Null(value1.Site); 386Assert.Null(value1.Site); 390Assert.Null(value2.Site); 422Assert.Null(value1.Site); 425Assert.Null(value2.Site); 515Assert.Null(value1.Site); 546Assert.Null(value1.Site); 550Assert.Null(value2.Site); 594Assert.Null(value1.Site); 598Assert.Null(value2.Site); 669Assert.NotNull(value.Site); 705Assert.Same(mockValueSite.Object, value.Site); 730Assert.Null(value.Site); 1008Assert.Null(value1.Site); 1026Assert.Null(value1.Site); 1030Assert.Null(value2.Site); 1055Assert.Null(value1.Site); 1058Assert.Null(value2.Site); 2003Assert.Null(value1.Site); 2022Assert.Null(value1.Site); 2026Assert.Null(value2.Site); 2054Assert.Null(value1.Site); 2057Assert.Null(value2.Site); 2131Assert.Null(value1.Site); 2159Assert.Null(value1.Site); 2163Assert.Null(value2.Site); 2203Assert.Null(value1.Site); 2207Assert.Null(value2.Site); 2307Assert.Null(value1.Site); 2329Assert.Null(value1.Site); 2333Assert.Null(value2.Site); 2367Assert.Null(value1.Site); 2370Assert.Null(value2.Site); 2464Assert.Null(value1.Site); 2495Assert.Null(value1.Site); 2499Assert.Null(value2.Site); 2545Assert.Null(value1.Site); 2549Assert.Null(value2.Site); 2622Assert.NotNull(value.Site); 2656Assert.Same(mockValueSite.Object, value.Site); 2679Assert.Null(value.Site); 3049Assert.Null(value1.Site); 3068Assert.Null(value1.Site); 3072Assert.Null(value2.Site); 3100Assert.Null(value1.Site); 3103Assert.Null(value2.Site); 4015Assert.Null(value1.Site); 4019Assert.Null(value2.Site); 4036Assert.Null(value1.Site); 4040Assert.Null(value2.Site); 4057Assert.Null(value1.Site); 4061Assert.Null(value2.Site); 4130Assert.Null(value1.Site); 4134Assert.Null(value2.Site); 4154Assert.Null(value1.Site); 4158Assert.Null(value2.Site); 4181Assert.Null(value1.Site); 4185Assert.Null(value2.Site); 4253Assert.Null(value1.Site); 4257Assert.Null(value2.Site); 4277Assert.Null(value1.Site); 4281Assert.Null(value2.Site); 4301Assert.Null(value1.Site); 4305Assert.Null(value2.Site); 4377Assert.Null(value1.Site); 4381Assert.Null(value2.Site); 4401Assert.Null(value1.Site); 4405Assert.Null(value2.Site); 4428Assert.Null(value1.Site); 4432Assert.Null(value2.Site); 4734Assert.Null(value1.Site); 4738Assert.Null(value2.Site); 4754Assert.Null(value1.Site); 4758Assert.Null(value2.Site); 4774Assert.Null(value1.Site); 4778Assert.Null(value2.Site);
System\Windows\Forms\TabControlTests.cs (1)
101Assert.Null(control.Site);
System\Windows\Forms\TabPageTests.cs (2)
110Assert.Null(control.Site); 219Assert.Null(control.Site);
System\Windows\Forms\ToolStripControlHostTests.cs (31)
1791Assert.NotSame(mockSite.Object, c.Site); 1792Assert.Same(c, c.Site.Component); 1793Assert.Same(container, c.Site.Container); 1794Assert.Equal(designMode, c.Site.DesignMode); 1795Assert.Equal(name, c.Site.Name); 1801Assert.NotSame(mockSite.Object, c.Site); 1802Assert.Same(c, c.Site.Component); 1803Assert.Same(container, c.Site.Container); 1804Assert.Equal(designMode, c.Site.DesignMode); 1805Assert.Equal(name, c.Site.Name); 1811Assert.Null(c.Site); 1830ISite oldSite = c.Site; 1851ISite oldSite = c.Site; 1872ISite oldSite = c.Site; 1901c.Site.Name = value; 1903Assert.Equal(expected, c.Site.Name); 1908c.Site.Name = value; 1910Assert.Equal(expected, c.Site.Name); 1930ISite oldSite = c.Site; 1962Assert.Same(result, c.Site.GetService(typeof(int))); 1981Assert.Same(c.Site, c.Site.GetService(typeof(IDictionaryService))); 1999ISite oldSite = c.Site; 2020Assert.Throws<ArgumentNullException>("service", () => c.Site.GetService(null)); 2039IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2059IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2081IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2100IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2120IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2140IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2172IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
143Assert.Null(control.Site);
System\Windows\Forms\ToolStripPanelTests.cs (1)
108Assert.Null(control.Site);
System\Windows\Forms\ToolStripTests.cs (2)
151Assert.Null(control.Site); 306Assert.Null(control.Site);
System\Windows\Forms\TreeViewTests.cs (1)
116Assert.Null(control.Site);
System\Windows\Forms\UpDownBaseTests.cs (1)
120Assert.Null(control.Site);
System\Windows\Forms\UserControlTests.cs (1)
111Assert.Null(control.Site);
System\Windows\Forms\VScrollBarTests.cs (1)
104Assert.Null(control.Site);
TextBoxTests.cs (1)
110Assert.Null(control.Site);
TrackBarTests.cs (1)
97Assert.Null(control.Site);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
327pe.Graphics.DrawString($"Design time \n{Control.Site?.Name} !", Control.Font, SystemBrushes.WindowText, new PointF(12, 12));