4 references to TypedControlCollectionShouldBeOfType
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
52
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.
TypedControlCollectionShouldBeOfType
, nameof(ToolStrip))), control.GetType().Name);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (2)
78
throw new NotSupportedException(string.Format(SR.
TypedControlCollectionShouldBeOfType
, nameof(ToolStrip)));
210
throw new NotSupportedException(string.Format(SR.
TypedControlCollectionShouldBeOfType
, nameof(ToolStrip)));
System\Windows\Forms\Internal\TypedControlCollection.cs (1)
48
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.
TypedControlCollectionShouldBeOfType
, _typeOfControl.Name)), value.GetType().Name);