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)
886
public override ISite?
Site
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
173
public override ISite?
Site
140 writes to Site
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
902
base.
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)
392
ControlInternal.
Site
= value is not null
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
179
base.
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 (20)
ControlDesignerTests.cs (2)
214
_designer._control.
Site
= mockSite.Object;
219
childControl.
Site
= mockSite.Object;
SplitContainerDesignerTests.cs (2)
37
splitContainer.
Site
= mockSite.Object;
57
splitContainer.
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)
162
control.
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\MaskedTextBoxDesignerActionListTests.cs (1)
37
_maskedTextBox.
Site
= mockSite.Object;
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (3)
34
toolStripContainer.
Site
= mockSite.Object;
37
splitContainer.
Site
= mockSite.Object;
40
splitterPanel.
Site
= mockSite.Object;
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (1)
24
_textbox.
Site
= site.Object;
System\Windows\Forms\Design\ToolStripActionListTests.cs (2)
40
_toolStrip.
Site
= mockSite.Object;
153
Site
= _toolStrip.Site
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)
38
toolStrip.
Site
= mockSite.Object;
ToolStripDropDownDesignerTest.cs (1)
33
toolStripDropDown.
Site
= mockSite.Object;
System.Windows.Forms.Tests (113)
System\Windows\Forms\ButtonBaseTests.cs (19)
569
Site
= mockSite.Object,
615
Site
= mockSite.Object,
661
Site
= mockSite.Object,
868
Site
= mockSite.Object,
959
Site
= mockSite.Object
1513
Site
= mockSite.Object
1667
Site
= mockSite.Object
2849
Site
= mockSite.Object,
2961
Site
= mockSite.Object
4395
Site
= mockSite.Object,
4486
Site
= mockSite.Object
5165
Site
= mockSite.Object
5269
Site
= mockSite.Object
6281
Site
= mockSite.Object
6372
Site
= mockSite.Object
6994
Site
= mockSite.Object
7098
Site
= mockSite.Object
7424
Site
= mockSite.Object
7528
Site
= mockSite.Object
System\Windows\Forms\ButtonTests.cs (2)
2424
Site
= mockSite.Object
2513
Site
= mockSite.Object
System\Windows\Forms\ControlTests.Methods.cs (3)
2544
Site
= mockSite.Object
2595
Site
= mockSite.Object
2663
Site
= mockSite.Object
System\Windows\Forms\ControlTests.Properties.cs (20)
9302
Site
= mockSite.Object
9370
Site
= mockSite.Object,
10548
Site
= mockSite.Object
10607
Site
= mockSite.Object
10651
Site
= value
10657
control.
Site
= value;
10675
control.
Site
= value;
10683
control.
Site
= value;
10704
Site
= mockSite.Object
10707
control.
Site
= value;
10711
control.
Site
= value;
10809
control.
Site
= mockSite1.Object;
10825
control.
Site
= mockSite1.Object;
10841
control.
Site
= mockSite2.Object;
10857
control.
Site
= mockSite3.Object;
10873
control.
Site
= mockSite4.Object;
10991
control.
Site
= mockSite1.Object;
11007
control.
Site
= mockSite1.Object;
11023
control.
Site
= mockSite2.Object;
11039
control.
Site
= mockSite3.Object;
System\Windows\Forms\DataGridViewElementTests.cs (1)
286
Site
= mockSite.Object
System\Windows\Forms\MdiClientTests.cs (4)
355
Site
= mockSite.Object,
420
Site
= mockSite.Object,
847
Site
= mockSite.Object
1009
Site
= mockSite.Object
System\Windows\Forms\PanelTests.cs (1)
1087
Site
= mockSite.Object,
System\Windows\Forms\PictureBoxTests.cs (8)
830
Site
= mockSite.Object
845
pictureBox.
Site
= null;
862
Site
= mockSite.Object
875
pictureBox.
Site
= null;
2045
Site
= mockSite.Object
2060
pictureBox.
Site
= null;
2077
Site
= mockSite.Object
2090
pictureBox.
Site
= null;
System\Windows\Forms\ProgressBarTests.cs (3)
147
Site
= mockSite.Object
805
Site
= mockSite.Object,
866
Site
= mockSite.Object,
System\Windows\Forms\TabControl.ControlCollectionTests.cs (6)
663
Site
= mockSite.Object
693
Site
= mockValueSite.Object
697
Site
= mockSite.Object
720
Site
= mockSite.Object
821
Site
= mockSite.Object
1521
Site
= mockSite.Object
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (16)
660
Site
= mockSite.Object
692
Site
= mockValueSite.Object
696
Site
= mockSite.Object
721
Site
= mockSite.Object
827
Site
= mockSite.Object
2615
Site
= mockSite.Object
2645
Site
= mockValueSite.Object
2649
Site
= mockSite.Object
2672
Site
= mockSite.Object
2853
Site
= mockSite.Object
3404
Site
= mockSite.Object
3492
Site
= mockSite.Object
3608
Site
= mockSite.Object
3803
Site
= mockSite.Object
3889
Site
= mockSite.Object
4641
Site
= mockSite.Object
System\Windows\Forms\TabControlTests.cs (1)
205
Site
= mockSite.Object
System\Windows\Forms\TabPageTests.cs (15)
708
Site
= mockSite.Object,
750
Site
= mockSite.Object,
793
Site
= mockSite.Object,
1165
Site
= mockSite.Object
1317
Site
= mockSite.Object
1437
Site
= mockSite.Object
1554
Site
= mockSite.Object
1695
Site
= mockSite.Object
1809
Site
= mockSite.Object
2836
Site
= mockSite.Object
2950
Site
= mockSite.Object
3069
Site
= mockSite.Object
3208
Site
= mockSite.Object
3326
Site
= mockSite.Object
3438
Site
= mockSite.Object
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1225
Site
= mockSite.Object,
1363
Site
= mockSite.Object,
System\Windows\Forms\ToolStripTests.cs (5)
1776
Site
= mockSite.Object,
1912
Site
= mockSite.Object,
2129
Site
= mockSite.Object,
2135
Site
= mockSite.Object,
4257
Site
= mockSite.Object
System\Windows\Forms\TreeViewTests.cs (3)
537
Site
= mockSite.Object,
576
Site
= mockSite.Object,
6107
Site
= mockSite.Object
System\Windows\Forms\UserControlTests.cs (2)
282
Site
= mockSite.Object
374
Site
= mockSite.Object
TextBoxBaseTests.cs (2)
1475
Site
= mockSite.Object,
1506
Site
= mockSite.Object,
395 references to Site
System.Windows.Forms (37)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (4)
121
string? name = control.
Site
is { } site ? site.Name : control.Name;
295
if (control.
Site
is not { } site
333
Debug.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)
573
ambientProperties =
Site
is not null ?
Site
.GetService<AmbientProperties>() : GetService<AmbientProperties>();
2349
return (control.
Site
is not null && control.
Site
.DesignMode) || control.Parent is null ?
2350
control.
Site
: GetSitedParentSite(control.Parent);
2597
if (string.IsNullOrEmpty(name) &&
Site
is not null)
2599
name =
Site
.Name;
5288
Site
is { } site
11193
MarshalStringToMessage(
Site
?.Name ?? Name ?? string.Empty, ref m);
12616
ISite? site =
Site
;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6126
ISite? site =
Site
;
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (2)
24
public bool OwnerIsDesignMode => _group.ListView?.
Site
is not null && _group.ListView.
Site
.DesignMode;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
1166
if ((_listView.
Site
is null || !_listView.
Site
.DesignMode) && _group is not null)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridServiceProvider.cs (1)
27
service ??= _ownerPropertyGrid.
Site
?.GetService(serviceType);
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (2)
52
ISite? site = _owner.
Site
;
55
ISite? siteTab = tabPage.
Site
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
807
if (toolStripToDrag.
Site
is not null && toolStripToDrag.
Site
.DesignMode && IsHandleCreated)
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (3)
312
if (_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)
94
ISite? site = ctl.
Site
;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
1119
bool dt =
Site
?.DesignMode ?? false;
1120
bool parentDt = ParentInternal.
Site
?.DesignMode ?? false;
System\Windows\Forms\Layout\FlowLayout.cs (2)
311
if (container is Control flp && flp.
Site
is not null && flp.
Site
.DesignMode)
System\Windows\Forms\MDI\MDIClient.cs (5)
102
ISite? site = ParentInternal?.
Site
;
172
ISite? site = ParentInternal?.
Site
;
224
|| ParentInternal?.
Site
?.DesignMode == true)
333
if (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)
92
if (parentControl.
Site
is not null)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (5)
80
_serviceProviderSource = source.
Site
;
223
if (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)
1792
while (parent is not null && parent.
Site
is null)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (6)
129
if (control.
Site
is not null && control.
Site
.DesignMode)
280
if (parent is not null && parent.
Site
is not null)
423
if (child.
Site
is null || child.
Site
.Container != control.
Site
!.Container)
System\Windows\Forms\Design\ControlCommandSet.cs (8)
300
if (obj is not Control control || control.
Site
is null)
388
if (currentSnapProp.PropertyType == typeof(bool) && c.
Site
is not null && c.
Site
.Container == container)
1409
if (nextControl is not null && nextControl.
Site
is not null)
1411
controlSiteContainer = DesignerUtils.CheckForNestedContainer(nextControl.
Site
.Container); // ...necessary to support SplitterPanel components
1414
if (nextControl is null || nextControl.
Site
is null || controlSiteContainer != container)
1461
if (ctl.
Site
is not null && ctl.
Site
.Container == ctl.Container)
System\Windows\Forms\Design\ControlDesigner.cs (2)
117
if (control.
Site
is not null)
1120
ISite? 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)
56
if (_liveDataGridView.
Site
.TryGetService(out IUIService? uiService))
129
_liveDataGridView.
Site
?.Container?.Add(column, column.Name);
133
IUIService? uiService = _liveDataGridView.
Site
?.GetService<IUIService>();
155
IDesignerHost? host = _liveDataGridView.
Site
?.GetService<IDesignerHost>();
520
if (!_liveDataGridView.
Site
.TryGetService(out IComponentChangeService? changeService))
584
IHelpService? helpService = _liveDataGridView.
Site
?.GetService<IHelpService>();
635
if (_liveDataGridView.
Site
.TryGetService(out IDesignerHost? host))
638
nameCreationService = _liveDataGridView.
Site
.GetService<INameCreationService>();
650
IUIService? uiService = _liveDataGridView.
Site
?.GetService<IUIService>();
660
if (!_liveDataGridView.
Site
.TryGetService(out IDesignerHost? host))
770
IDesignerHost? host = _liveDataGridView.
Site
?.GetService<IDesignerHost>();
772
INameCreationService? nameCreationService = _liveDataGridView.
Site
?.GetService<INameCreationService>();
788
IUIService? uiService = _liveDataGridView.
Site
?.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (11)
116
ITypeResolutionService? tr = _liveDataGridView?.
Site
?.GetService<ITypeResolutionService>();
182
IComponentChangeService? changeService = _liveDataGridView!.
Site
?.GetService<IComponentChangeService>();
184
IContainer? currentContainer = _liveDataGridView.
Site
?.Container;
280
IUIService? uiService = _liveDataGridView?.
Site
?.GetService<IUIService>();
788
IHelpService? helpService = _liveDataGridView?.
Site
?.GetService<IHelpService>();
795
IUIService? uiService = _liveDataGridView?.
Site
?.GetService<IUIService>();
873
ITypeResolutionService? tr = _liveDataGridView?.
Site
?.GetService<ITypeResolutionService>();
1090
IComponentChangeService? newComponentChangeService = dataGridView.
Site
?.GetService<IComponentChangeService>();
1103
_dataGridViewPrivateCopy.Site = dataGridView.
Site
;
1150
_propertyGrid1.Site = new DataGridViewComponentPropertyGridSite(_liveDataGridView.
Site
, _liveDataGridView);
1308
get => Owner._liveDataGridView?.
Site
;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (5)
52
if (dataGridView is not null && dataGridView.
Site
is not null)
54
host = dataGridView.
Site
.GetService<IDesignerHost>();
55
nameCreationService = dataGridView.
Site
.GetService<INameCreationService>();
71
if (dataGridView is not null && dataGridView.
Site
is not null)
73
IUIService? uiService = dataGridView.
Site
.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewDesigner.cs (16)
42
IComponentChangeService? componentChangeService = dataGridView.
Site
?.GetService<IComponentChangeService>();
97
if (dataGridView.
Site
.TryGetService(out IComponentChangeService? ccs))
341
IContainer? currentContainer = dataGridView.
Site
?.Container;
400
IContainer? currentContainer = dataGridView.
Site
?.Container;
451
ISite? site = dataGridView.
Site
;
532
ISite? site = dataGridView.
Site
;
842
IDesignerHost? host = dataGridView.
Site
?.GetService<IDesignerHost>();
844
IComponentChangeService? changeService = dataGridView.
Site
?.GetService<IComponentChangeService>();
921
IDesignerHost? host = dataGridView.
Site
?.GetService<IDesignerHost>();
936
IComponentChangeService? changeService = dataGridView.
Site
?.GetService<IComponentChangeService>();
964
IDesignerHost? host = dataGridView.
Site
?.GetService<IDesignerHost>();
979
IComponentChangeService? changeService = dataGridView.
Site
?.GetService<IComponentChangeService>();
1007
IDesignerHost? host = dataGridView.
Site
?.GetService<IDesignerHost>();
1022
IComponentChangeService? changeService = dataGridView.
Site
?.GetService<IComponentChangeService>();
1050
IDesignerHost? host = dataGridView.
Site
?.GetService<IDesignerHost>();
1065
IComponentChangeService? changeService = dataGridView.
Site
?.GetService<IComponentChangeService>();
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (1)
39
if (parent.
Site
is not ISite site)
System\Windows\Forms\Design\InheritanceUI.cs (2)
70
if (child.
Site
is null)
95
if (child.
Site
is null)
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
481
if (selectedControl is not null && selectedControl.
Site
is null)
879
child.
Site
is not null && child.
Site
.Container == container)
1276
ReParentControls(Control, selectedControls, string.Format(SR.ParentControlDesignerLassoShortcutRedo, Control.
Site
.Name), host);
System\Windows\Forms\Design\StyleEditorForm.cs (1)
102
var host = _tableLayoutPanel.
Site
.GetService<IDesignerHost>();
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (13)
505
trans = host.CreateTransaction(string.Format(SR.BehaviorServiceCopyControl, control.
Site
.Name));
524
trans = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerControlsSwapped, control.
Site
.Name, existingControl.
Site
.Name));
552
trans = host.CreateTransaction(string.Format(SR.BehaviorServiceMoveControl, control.
Site
.Name));
1637
if (host is not null && Table.
Site
is not null)
1642
: SR.TableLayoutPanelDesignerAddColumnUndoUnit, Table.
Site
.Name));
1752
if (host is not null && Table.
Site
is not null)
1757
Table.
Site
.Name));
1876
if (host is not null && Table.
Site
is not null)
1880
Table.
Site
.Name));
1973
if (host is not null && Table.
Site
is not null)
1975
using 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)
383
ISite? site = parent.
Site
;
448
if (control.
Site
is not ISite site || site.Container != _host)
System\Windows\Forms\Design\ToolStripActionList.cs (1)
121
DesignerActionUIService? actionUIService = (DesignerActionUIService?)_toolStrip.
Site
?.GetService(typeof(DesignerActionUIService));
System\Windows\Forms\Design\ToolStripCodeDomSerializer.cs (2)
25
if (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
)
985
if (addingItem.Owner.
Site
is null)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (4)
286
if (item.Owner.
Site
is not null)
298
if (parentControl.
Site
is not null)
783
if (parent.
Site
is not null)
843
if (parent.
Site
is not null)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (8)
354
if ((parentControls[c].
Site
is not null && parentControls[c].TabIndex != targetIndex) || hitCtl)
1064
if (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
1715
if (!(next is Control nextControl) || nextControl.
Site
is null || nextControl.
Site
.Container != container)
1986
if (ctl.
Site
is not null && ctl.
Site
.Container == container && !(ctl is ToolStripPanel))
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
40
if (parent is not null && parent.
Site
is null)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (11)
234
if (mainStrip is not null && mainStrip.
Site
is not null && !(mainStrip is ContextMenuStrip))
728
if (MenuItem.DropDown.
Site
is null)
1160
if (ddi.DropDown.
Site
is not null || ddi.DropDownItems.Count == 1)
1587
if (MenuItem.DropDown.
Site
is not null)
1679
if (IsOnContextMenu && MenuItem.DropDown.
Site
is not null)
1698
if (IsOnContextMenu && MenuItem.DropDown.
Site
is not null)
1716
if (IsOnContextMenu && MenuItem.DropDown.
Site
is not null)
1727
if (IsOnContextMenu && MenuItem.DropDown.
Site
is not null)
1744
if (IsOnContextMenu && MenuItem.DropDown.
Site
is not null)
1756
if (IsOnContextMenu && MenuItem.DropDown.
Site
is not null)
1782
if (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)
120
if (TreeView is not null && TreeView.
Site
is not null)
122
IDictionaryService dictionaryService = (IDictionaryService)TreeView.
Site
.GetService(typeof(IDictionaryService));
144
if (TreeView is not null && TreeView.
Site
is not null)
146
TreeView.
Site
.TryGetService(out IDictionaryService dictionaryService);
System.Windows.Forms.Design.Tests (3)
ControlDesignerTests.cs (1)
231
Mock<DesignerFrame> mockDesignerFrame = new(_designer._control.
Site
!) { CallBase = true };
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (1)
143
_toolStripDropDown.Site = _toolStripDropDownMenu.
Site
;
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
153
Site = _toolStrip.
Site
System.Windows.Forms.Tests (226)
System\Windows\Forms\ButtonBaseTests.cs (1)
106
Assert.Null(control.
Site
);
System\Windows\Forms\ButtonTests.cs (1)
104
Assert.Null(control.
Site
);
System\Windows\Forms\CheckBoxTests.cs (1)
106
Assert.Null(control.
Site
);
System\Windows\Forms\ComboBoxTests.cs (1)
119
Assert.Null(control.
Site
);
System\Windows\Forms\ContainerControlTests.cs (1)
109
Assert.Null(control.
Site
);
System\Windows\Forms\ControlTests.cs (5)
87
Assert.Null(control.
Site
);
176
Assert.Null(control.
Site
);
272
Assert.Null(control.
Site
);
368
Assert.Null(control.
Site
);
464
Assert.Null(control.
Site
);
System\Windows\Forms\ControlTests.Properties.cs (15)
10653
Assert.Same(value, control.
Site
);
10658
Assert.Same(value, control.
Site
);
10676
Assert.Same(value, control.
Site
);
10684
Assert.Same(value, control.
Site
);
10708
Assert.Same(value, control.
Site
);
10712
Assert.Same(value, control.
Site
);
10810
Assert.Same(mockSite1.Object, control.
Site
);
10826
Assert.Same(mockSite1.Object, control.
Site
);
10842
Assert.Same(mockSite2.Object, control.
Site
);
10858
Assert.Same(mockSite3.Object, control.
Site
);
10874
Assert.Same(mockSite4.Object, control.
Site
);
10992
Assert.Same(mockSite1.Object, control.
Site
);
11008
Assert.Same(mockSite1.Object, control.
Site
);
11024
Assert.Same(mockSite2.Object, control.
Site
);
11040
Assert.Same(mockSite3.Object, control.
Site
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
115
Assert.Null(control.
Site
);
System\Windows\Forms\DateTimePickerTests.cs (1)
111
Assert.Null(control.
Site
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
145
Assert.Null(control.
Site
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
112
Assert.Null(control.
Site
);
System\Windows\Forms\DomainUpDownTests.cs (1)
135
_sub.
Site
.Should().BeNull();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
103
Assert.Null(control.
Site
);
System\Windows\Forms\FormTests.cs (1)
147
Assert.Null(control.
Site
);
System\Windows\Forms\GroupBoxTests.cs (1)
91
Assert.Null(control.
Site
);
System\Windows\Forms\HScrollBarTests.cs (1)
103
Assert.Null(control.
Site
);
System\Windows\Forms\LabelTests.cs (1)
100
Assert.Null(control.
Site
);
System\Windows\Forms\ListBoxTests.cs (1)
119
Assert.Null(control.
Site
);
System\Windows\Forms\ListControlTests.cs (1)
99
Assert.Null(control.
Site
);
System\Windows\Forms\ListViewTests.cs (1)
134
Assert.Null(control.
Site
);
System\Windows\Forms\MdiClientTests.cs (1)
76
Assert.Null(control.
Site
);
System\Windows\Forms\MenuStripTests.cs (1)
133
Assert.Null(control.
Site
);
System\Windows\Forms\MonthCalendarTests.cs (1)
125
Assert.Null(control.
Site
);
System\Windows\Forms\PictureBoxTests.cs (1)
98
Assert.Null(control.
Site
);
System\Windows\Forms\ProgressBarTests.cs (1)
89
Assert.Null(control.
Site
);
System\Windows\Forms\RadioButtonTests.cs (1)
104
Assert.Null(control.
Site
);
System\Windows\Forms\RichTextBoxTests.cs (1)
123
Assert.Null(control.
Site
);
System\Windows\Forms\ScrollableControlTests.cs (1)
102
Assert.Null(control.
Site
);
System\Windows\Forms\ScrollBarTests.cs (1)
92
Assert.Null(control.
Site
);
System\Windows\Forms\SplitterTests.cs (1)
92
Assert.Null(control.
Site
);
System\Windows\Forms\StatusStripTests.cs (1)
134
Assert.Null(control.
Site
);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (47)
73
Assert.Null(value1.
Site
);
91
Assert.Null(value1.
Site
);
95
Assert.Null(value2.
Site
);
120
Assert.Null(value1.
Site
);
123
Assert.Null(value2.
Site
);
203
Assert.Null(value1.
Site
);
230
Assert.Null(value1.
Site
);
234
Assert.Null(value2.
Site
);
271
Assert.Null(value1.
Site
);
275
Assert.Null(value2.
Site
);
370
Assert.Null(value1.
Site
);
391
Assert.Null(value1.
Site
);
395
Assert.Null(value2.
Site
);
426
Assert.Null(value1.
Site
);
429
Assert.Null(value2.
Site
);
518
Assert.Null(value1.
Site
);
548
Assert.Null(value1.
Site
);
552
Assert.Null(value2.
Site
);
595
Assert.Null(value1.
Site
);
599
Assert.Null(value2.
Site
);
668
Assert.NotNull(value.
Site
);
702
Assert.Same(mockValueSite.Object, value.
Site
);
725
Assert.Null(value.
Site
);
926
Assert.Null(value1.
Site
);
930
Assert.Null(value2.
Site
);
946
Assert.Null(value1.
Site
);
950
Assert.Null(value2.
Site
);
966
Assert.Null(value1.
Site
);
970
Assert.Null(value2.
Site
);
1038
Assert.Null(value1.
Site
);
1042
Assert.Null(value2.
Site
);
1061
Assert.Null(value1.
Site
);
1065
Assert.Null(value2.
Site
);
1087
Assert.Null(value1.
Site
);
1091
Assert.Null(value2.
Site
);
1156
Assert.Null(value1.
Site
);
1160
Assert.Null(value2.
Site
);
1179
Assert.Null(value1.
Site
);
1183
Assert.Null(value2.
Site
);
1202
Assert.Null(value1.
Site
);
1206
Assert.Null(value2.
Site
);
1275
Assert.Null(value1.
Site
);
1279
Assert.Null(value2.
Site
);
1298
Assert.Null(value1.
Site
);
1302
Assert.Null(value2.
Site
);
1324
Assert.Null(value1.
Site
);
1328
Assert.Null(value2.
Site
);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (86)
59
Assert.Null(value1.
Site
);
78
Assert.Null(value1.
Site
);
82
Assert.Null(value2.
Site
);
108
Assert.Null(value1.
Site
);
111
Assert.Null(value2.
Site
);
192
Assert.Null(value1.
Site
);
220
Assert.Null(value1.
Site
);
224
Assert.Null(value2.
Site
);
262
Assert.Null(value1.
Site
);
266
Assert.Null(value2.
Site
);
362
Assert.Null(value1.
Site
);
384
Assert.Null(value1.
Site
);
388
Assert.Null(value2.
Site
);
420
Assert.Null(value1.
Site
);
423
Assert.Null(value2.
Site
);
513
Assert.Null(value1.
Site
);
544
Assert.Null(value1.
Site
);
548
Assert.Null(value2.
Site
);
592
Assert.Null(value1.
Site
);
596
Assert.Null(value2.
Site
);
667
Assert.NotNull(value.
Site
);
703
Assert.Same(mockValueSite.Object, value.
Site
);
728
Assert.Null(value.
Site
);
1006
Assert.Null(value1.
Site
);
1024
Assert.Null(value1.
Site
);
1028
Assert.Null(value2.
Site
);
1053
Assert.Null(value1.
Site
);
1056
Assert.Null(value2.
Site
);
2001
Assert.Null(value1.
Site
);
2020
Assert.Null(value1.
Site
);
2024
Assert.Null(value2.
Site
);
2052
Assert.Null(value1.
Site
);
2055
Assert.Null(value2.
Site
);
2129
Assert.Null(value1.
Site
);
2157
Assert.Null(value1.
Site
);
2161
Assert.Null(value2.
Site
);
2201
Assert.Null(value1.
Site
);
2205
Assert.Null(value2.
Site
);
2305
Assert.Null(value1.
Site
);
2327
Assert.Null(value1.
Site
);
2331
Assert.Null(value2.
Site
);
2365
Assert.Null(value1.
Site
);
2368
Assert.Null(value2.
Site
);
2462
Assert.Null(value1.
Site
);
2493
Assert.Null(value1.
Site
);
2497
Assert.Null(value2.
Site
);
2543
Assert.Null(value1.
Site
);
2547
Assert.Null(value2.
Site
);
2620
Assert.NotNull(value.
Site
);
2654
Assert.Same(mockValueSite.Object, value.
Site
);
2677
Assert.Null(value.
Site
);
3047
Assert.Null(value1.
Site
);
3066
Assert.Null(value1.
Site
);
3070
Assert.Null(value2.
Site
);
3098
Assert.Null(value1.
Site
);
3101
Assert.Null(value2.
Site
);
4013
Assert.Null(value1.
Site
);
4017
Assert.Null(value2.
Site
);
4034
Assert.Null(value1.
Site
);
4038
Assert.Null(value2.
Site
);
4055
Assert.Null(value1.
Site
);
4059
Assert.Null(value2.
Site
);
4128
Assert.Null(value1.
Site
);
4132
Assert.Null(value2.
Site
);
4152
Assert.Null(value1.
Site
);
4156
Assert.Null(value2.
Site
);
4179
Assert.Null(value1.
Site
);
4183
Assert.Null(value2.
Site
);
4251
Assert.Null(value1.
Site
);
4255
Assert.Null(value2.
Site
);
4275
Assert.Null(value1.
Site
);
4279
Assert.Null(value2.
Site
);
4299
Assert.Null(value1.
Site
);
4303
Assert.Null(value2.
Site
);
4375
Assert.Null(value1.
Site
);
4379
Assert.Null(value2.
Site
);
4399
Assert.Null(value1.
Site
);
4403
Assert.Null(value2.
Site
);
4426
Assert.Null(value1.
Site
);
4430
Assert.Null(value2.
Site
);
4732
Assert.Null(value1.
Site
);
4736
Assert.Null(value2.
Site
);
4752
Assert.Null(value1.
Site
);
4756
Assert.Null(value2.
Site
);
4772
Assert.Null(value1.
Site
);
4776
Assert.Null(value2.
Site
);
System\Windows\Forms\TabControlTests.cs (1)
99
Assert.Null(control.
Site
);
System\Windows\Forms\TabPageTests.cs (2)
108
Assert.Null(control.
Site
);
217
Assert.Null(control.
Site
);
System\Windows\Forms\ToolStripControlHostTests.cs (31)
1789
Assert.NotSame(mockSite.Object, c.
Site
);
1790
Assert.Same(c, c.
Site
.Component);
1791
Assert.Same(container, c.
Site
.Container);
1792
Assert.Equal(designMode, c.
Site
.DesignMode);
1793
Assert.Equal(name, c.
Site
.Name);
1799
Assert.NotSame(mockSite.Object, c.
Site
);
1800
Assert.Same(c, c.
Site
.Component);
1801
Assert.Same(container, c.
Site
.Container);
1802
Assert.Equal(designMode, c.
Site
.DesignMode);
1803
Assert.Equal(name, c.
Site
.Name);
1809
Assert.Null(c.
Site
);
1828
ISite oldSite = c.
Site
;
1849
ISite oldSite = c.
Site
;
1870
ISite oldSite = c.
Site
;
1899
c.
Site
.Name = value;
1901
Assert.Equal(expected, c.
Site
.Name);
1906
c.
Site
.Name = value;
1908
Assert.Equal(expected, c.
Site
.Name);
1928
ISite oldSite = c.
Site
;
1960
Assert.Same(result, c.
Site
.GetService(typeof(int)));
1979
Assert.Same(c.
Site
, c.
Site
.GetService(typeof(IDictionaryService)));
1997
ISite oldSite = c.
Site
;
2018
Assert.Throws<ArgumentNullException>("service", () => c.
Site
.GetService(null));
2037
IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.
Site
);
2057
IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.
Site
);
2079
IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.
Site
);
2098
IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.
Site
);
2118
IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.
Site
);
2138
IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.
Site
);
2170
IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.
Site
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
141
Assert.Null(control.
Site
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
106
Assert.Null(control.
Site
);
System\Windows\Forms\ToolStripTests.cs (2)
149
Assert.Null(control.
Site
);
304
Assert.Null(control.
Site
);
System\Windows\Forms\TreeViewTests.cs (1)
114
Assert.Null(control.
Site
);
System\Windows\Forms\UpDownBaseTests.cs (1)
118
Assert.Null(control.
Site
);
System\Windows\Forms\UserControlTests.cs (1)
109
Assert.Null(control.
Site
);
System\Windows\Forms\VScrollBarTests.cs (1)
102
Assert.Null(control.
Site
);
TextBoxTests.cs (1)
108
Assert.Null(control.
Site
);
TrackBarTests.cs (1)
95
Assert.Null(control.
Site
);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
327
pe.Graphics.DrawString($"Design time \n{Control.
Site
?.Name} !", Control.Font, SystemBrushes.WindowText, new PointF(12, 12));