6 references to ReadOnlyControlCollection
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4681return new ReadOnlyControlCollection(this, isReadOnly: !DesignMode);
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.ToolStripContainerTypedControlCollection.cs (1)
17: base(c, isReadOnly)
System\Windows\Forms\Internal\TypedControlCollection.cs (2)
18: base(owner, isReadOnly) 25: base(owner, isReadOnly: false)
System.Windows.Forms.Tests (2)
System\Windows\Forms\ReadOnlyControlCollectionTests.cs (2)
14ReadOnlyControlCollection collection = new(owner, false); 24Assert.Throws<ArgumentNullException>("owner", () => new ReadOnlyControlCollection(null, false));