16 types derived from ContainerControl
System.Windows.Forms (8)
System\Windows\Forms\Application.ParkingWindow.cs (1)
14internal sealed class ParkingWindow : ContainerControl, IArrangedElement
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
23public partial class PropertyGrid : ContainerControl, IComPropertyBrowser, IPropertyNotifySink.Interface
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
11public partial class ToolStripContainer : ContainerControl
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
13public partial class ToolStripPanel : ContainerControl, IArrangedElement
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
16public abstract partial class UpDownBase : ContainerControl
System\Windows\Forms\Form.cs (1)
28public partial class Form : ContainerControl
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
23public partial class SplitContainer : ContainerControl, ISupportInitialize
System\Windows\Forms\UserControl.cs (1)
19public class UserControl : ContainerControl
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
14internal sealed partial class DesignerActionPanel : ContainerControl
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
13internal partial class DataGridViewColumnTypePicker : ContainerControl
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.ListBoxItem.cs (1)
6internal partial class DataGridViewColumnTypePicker : ContainerControl
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
89internal class DesignBindingPicker : ContainerControl
System.Windows.Forms.Tests (3)
System\Windows\Forms\ContainerControlTests.cs (1)
1399public class SubContainerControl : ContainerControl
System\Windows\Forms\ControlTests.Methods.cs (1)
2230private class SubContainerControl : ContainerControl
System\Windows\Forms\ErrorProviderTests.cs (1)
1383private class SubContainerControl : ContainerControl
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
746internal class WinFormsAdapter : SWF.ContainerControl
63 instantiations of ContainerControl
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3533_newParent = new ContainerControl();
System.Windows.Forms.Tests (60)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (8)
357using ContainerControl parent = new(); 417using ContainerControl parent = new(); 442using ContainerControl parent = new(); 467using ContainerControl parent = new(); 558using ContainerControl parent = new(); 657using ContainerControl parent = new(); 683using ContainerControl parent = new(); 709using ContainerControl parent = new();
System\Windows\Forms\AxHostTests.cs (4)
348ContainerControl grandparent = new(); 370ContainerControl parent = new(); 399ContainerControl grandparent = new(); 414yield return new object[] { new ContainerControl() };
System\Windows\Forms\ContainerControlTests.cs (23)
149using ContainerControl control = new(); 174using ContainerControl control = new(); 183using ContainerControl control = new() 201using ContainerControl control = new(); 216using ContainerControl control = new(); 224using ContainerControl control = new() 248using ContainerControl control = new() 272using ContainerControl control = new(); 288using ContainerControl control = new() 304using ContainerControl control = new(); 340using ContainerControl control = new(); 348using ContainerControl control = new() 369using ContainerControl control = new(); 449using ContainerControl control = new(); 574using ContainerControl control = new(); 612using ContainerControl control = new(); 779using ContainerControl control = new(); 793using ContainerControl control = new(); 797using ContainerControl child2 = new(); 987using ContainerControl control = new(); 1019using ContainerControl control = new(); 1023using ContainerControl child2 = new(); 1214using ContainerControl control = new();
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
1975using ContainerControl owner = new();
System\Windows\Forms\ControlTests.Methods.cs (12)
2151using ContainerControl greatGrandparent = new(); 2152using ContainerControl grandparent = new() 2172using ContainerControl greatGrandparent = new(); 2189using ContainerControl greatGrandparent = new(); 2211using ContainerControl greatGrandparent = new(); 14084using ContainerControl parent = new(); 14195using ContainerControl grandparent = new(); 14196using ContainerControl parent = new() 14241using ContainerControl parent = new() 14283using ContainerControl grandparent = new(); 14284using ContainerControl parent = new() 14329using ContainerControl parent = new()
System\Windows\Forms\ErrorProviderTests.cs (12)
38using ContainerControl parentControl = new(); 185yield return new object[] { new ContainerControl() }; 210ContainerControl = new ContainerControl() 258yield return new object[] { new ContainerControl(), value, value ?? string.Empty }; 284yield return new object[] { new ContainerControl(), dataMember }; 354using ContainerControl containerControl = new(); 430yield return new object[] { new ContainerControl(), value }; 456yield return new object[] { new ContainerControl(), dataMember }; 494using ContainerControl containerControl = new(); 717ContainerControl containerControl = new(); 816using ContainerControl containerControl = new(); 834using ContainerControl containerControl = new();
System.Windows.Forms.UI.IntegrationTests (2)
AnchorLayoutTests.cs (2)
146using ContainerControl container = new(); 175using ContainerControl container = new();
173 references to ContainerControl
System.Windows.Forms (92)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
400if (parent.GetContainerControl() is not ContainerControl container)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
22internal ContainerControl _parent; 38internal AxContainer(ContainerControl parent)
System\Windows\Forms\ActiveX\AxHost.cs (12)
118private ContainerControl? _containingControl; 119private ContainerControl? _newParent; 426ContainerControl? containingControl = ContainingControl; 436ContainerControl? containingControl = ContainingControl; 940ContainerControl? containingControl = ContainingControl; 1486ContainerControl? containingControl = ContainingControl; 1615ContainerControl? container = ContainingControl; 1970/// <see cref="ContainerControl"/> in the parent hierarchy. 1981public ContainerControl? ContainingControl 2010private ContainerControl? FindContainerControlInternal() 2012if (Site.TryGetService(out IDesignerHost? host) && host.RootComponent is ContainerControl rootControl) 2020if (control is ContainerControl containerControl)
System\Windows\Forms\Control.ControlCollection.cs (1)
305if (Owner.GetContainerControl() is ContainerControl cc)
System\Windows\Forms\Control.cs (15)
1390if (GetContainerControl() is not ContainerControl container || !CausesValidation) 1398|| parent.GetContainerControl() is not ContainerControl parentContainer) 5073if (control is ContainerControl containerControl) 6296while (parentControl is not null and not ContainerControl) 6301return parentControl is ContainerControl; 6934var container = this as ContainerControl; 8279internal ContainerControl? ParentContainerControl 8285if (c is ContainerControl) 8287return c as ContainerControl; 9579if (child is ContainerControl && causedByFontChanged) 10408ContainerControl? parent = control.ParentContainerControl; 11459ContainerControl? container = this as ContainerControl; 11929if (c is ContainerControl knowncontainer)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1536if (c is ContainerControl container)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1058if (dataGridView.GetContainerControl() is ContainerControl cc && (dataGridView.EditingControl == cc.ActiveControl || dataGridView.EditingControl.Contains(cc.ActiveControl)))
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
1850while (c.ActiveControl is ContainerControl) 1864if (c is ContainerControl containerControl) 1978if (c is ContainerControl containerControl)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
1059internal static List<ToolStrip> FindMergeableToolStrips(ContainerControl? container)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
389/// the <see cref="ContainerControl"/>
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (8)
40private ContainerControl? _containingControl; 690internal ContainerControl? ContainingControl 964ContainerControl? containingControl = ContainingControl; 1138internal ContainerControl? FindContainerControlInternal() 1140if (Site.TryGetService(out IDesignerHost? host) && host.RootComponent is ContainerControl rootContainerControl) 1145ContainerControl? containerControl = null; 1148if (control is ContainerControl tempCC) 1156containerControl = FromHandle(PInvoke.GetParent(this)) as ContainerControl;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
376ContainerControl? containingControl = site.ContainingControl; 403ContainerControl? parentContainer = _parent.FindContainerControlInternal();
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (4)
47private ContainerControl? _parentControl; 70public ErrorProvider(ContainerControl parentControl) 100if (host.RootComponent is ContainerControl rootContainer) 166public ContainerControl? ContainerControl
System\Windows\Forms\Form.cs (3)
5982ContainerControl? containerControl = this; 5984while (containerControl.ActiveControl is ContainerControl) 5986containerControl = containerControl.ActiveControl as ContainerControl;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (32)
87/// Initializes a new instance of the <see cref="ContainerControl"/> class. 400ContainerControl? containerControl = null; 404containerControl = parent.GetContainerControl() as ContainerControl; 467ContainerControl? cc; 492cc = ParentInternal.GetContainerControl() as ContainerControl; 514cc = parent.GetContainerControl() as ContainerControl; 596/// Disposes of the resources (other than memory) used by the <see cref="ContainerControl"/>. 644ContainerControl? containerControl = this; 650containerControl = parent.GetContainerControl() as ContainerControl; 672&& (parentControl is not ContainerControl containerControl 678return parentControl is ContainerControl container ? container._currentAutoScaleFactor : new SizeF(1F, 1F); 1184if (GetContainerControl() is ContainerControl && charCode != ' ' && ProcessMnemonic(charCode)) 1469ContainerControl? containerControl = this; 1473containerControl = value.ParentInternal?.GetContainerControl() as ContainerControl; 1488ContainerControl ancestor = this; 1489while (ancestor.ParentInternal?.GetContainerControl() is ContainerControl parentContainer) 1502private protected ContainerControl InnerMostActiveContainerControl 1506ContainerControl result = this; 1507while (result.ActiveControl is ContainerControl control) 1516private ContainerControl InnerMostFocusedContainerControl 1520ContainerControl result = this; 1521while (result._focusedControl is ContainerControl control) 1593ContainerControl innerMostFCC = InnerMostFocusedContainerControl; 1617ContainerControl? containerControl = innerMostFCC.ParentInternal.GetContainerControl() as ContainerControl; 1713while (_unvalidatedControl is ContainerControl container) 1804if (_focusedControl is ContainerControl control && _focusedControl.CausesValidation) 1806ContainerControl c = control; 1899if (currentActiveControl is ContainerControl currentActiveContainerControl) 1941if (currentActiveControl is ContainerControl currentActiveContainerControl) 1980if (_activeControl is ContainerControl activeContainerControl) 2020if (!(container is ContainerControl knowncontainer
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
1149if (c is not ContainerControl cc) 1886if (c is not ContainerControl cc) 1997if (ctl is ContainerControl container) 2373if (c is not ContainerControl cc)
System\Windows\Forms\Layout\Containers\ValidationConstraints.cs (1)
8/// by the <see cref="ContainerControl.ValidateChildren(ValidationConstraints)"/> method.
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\DocumentDesigner.cs (8)
68ContainerControl c = Control as ContainerControl; 79ContainerControl c = Control as ContainerControl; 96ContainerControl c = Control as ContainerControl; 108ContainerControl c = Control as ContainerControl;
System.Windows.Forms.Tests (68)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (8)
357using ContainerControl parent = new(); 417using ContainerControl parent = new(); 442using ContainerControl parent = new(); 467using ContainerControl parent = new(); 558using ContainerControl parent = new(); 657using ContainerControl parent = new(); 683using ContainerControl parent = new(); 709using ContainerControl parent = new();
System\Windows\Forms\AxHostTests.cs (4)
348ContainerControl grandparent = new(); 370ContainerControl parent = new(); 399ContainerControl grandparent = new(); 419public void AxHost_ContainingControl_Set_GetReturnsExpected(ContainerControl value)
System\Windows\Forms\ContainerControlTests.cs (23)
149using ContainerControl control = new(); 174using ContainerControl control = new(); 183using ContainerControl control = new() 201using ContainerControl control = new(); 216using ContainerControl control = new(); 224using ContainerControl control = new() 248using ContainerControl control = new() 272using ContainerControl control = new(); 288using ContainerControl control = new() 304using ContainerControl control = new(); 340using ContainerControl control = new(); 348using ContainerControl control = new() 369using ContainerControl control = new(); 449using ContainerControl control = new(); 574using ContainerControl control = new(); 612using ContainerControl control = new(); 779using ContainerControl control = new(); 793using ContainerControl control = new(); 797using ContainerControl child2 = new(); 987using ContainerControl control = new(); 1019using ContainerControl control = new(); 1023using ContainerControl child2 = new(); 1214using ContainerControl control = new();
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
1975using ContainerControl owner = new();
System\Windows\Forms\ControlTests.Methods.cs (12)
2151using ContainerControl greatGrandparent = new(); 2152using ContainerControl grandparent = new() 2172using ContainerControl greatGrandparent = new(); 2189using ContainerControl greatGrandparent = new(); 2211using ContainerControl greatGrandparent = new(); 14084using ContainerControl parent = new(); 14195using ContainerControl grandparent = new(); 14196using ContainerControl parent = new() 14241using ContainerControl parent = new() 14283using ContainerControl grandparent = new(); 14284using ContainerControl parent = new() 14329using ContainerControl parent = new()
System\Windows\Forms\ErrorProviderTests.cs (20)
38using ContainerControl parentControl = new(); 59Assert.Throws<ArgumentNullException>("parentControl", () => new ErrorProvider((ContainerControl)null)); 191public void ErrorProvider_ContainerControl_Set_GetReturnsExpected(ContainerControl value) 206public void ErrorProvider_ContainerControl_SetWithNonNullOldValue_GetReturnsExpected(ContainerControl value) 265public void ErrorProvider_DataMember_SetWithContainerControl_GetReturnsExpected(ContainerControl containerControl, string value, string expected) 291public void ErrorProvider_DataMember_SetWithValidDataSourceWithContainerControl_ReturnsExpected(ContainerControl containerControl, string dataMember) 338public void ErrorProvider_DataMember_SetWithInvalidDataSourceWithContainerControl_ReturnsExpected(ContainerControl containerControl) 354using ContainerControl containerControl = new(); 437public void ErrorProvider_DataSource_SetWithContainerControl_GetReturnsExpected(ContainerControl containerControl, object value) 463public void ErrorProvider_DataSource_SetWithValidDataMemberWithContainerControl_ReturnsExpected(ContainerControl containerControl, string dataMember) 478public void ErrorProvider_DataSource_SetWithInvalidDataMemberWithContainerControl_ReturnsExpected(ContainerControl containerControl) 494using ContainerControl containerControl = new(); 717ContainerControl containerControl = new(); 723public void ErrorProvider_Site_SetWithIDesignerHost_SetsContainerControl(IComponent rootComponent, ContainerControl expected) 768foreach (ContainerControl containerControl in new ContainerControl[] { null, new SubContainerControl() }) 781public void BindToDataAndErrors_Invoke_SetsDataSourceAndDataMember(ContainerControl containerControl, object newDataSource, string newDataMember) 816using ContainerControl containerControl = new(); 834using ContainerControl containerControl = new(); 1357public SubErrorProvider(ContainerControl parentControl) : base(parentControl)
System.Windows.Forms.UI.IntegrationTests (2)
AnchorLayoutTests.cs (2)
146using ContainerControl container = new(); 175using ContainerControl container = new();
WindowsFormsIntegration (3)
System\Windows\Integration\WindowsFormsHost.cs (3)
902ContainerControl ret = this; 903while (ret.ActiveControl is ContainerControl) 905ret = (ContainerControl)ret.ActiveControl;