12 references to Contains
System.Windows.Forms (12)
winforms\Managed\System\WinForms\ContainerControl.cs (4)
468
if (control == activeControl || control.
Contains
(activeControl)) {
538
(cc.unvalidatedControl == control || control.
Contains
(cc.unvalidatedControl)))
544
if (control == unvalidatedControl || control.
Contains
(unvalidatedControl)) {
1386
if (value != null && !
Contains
(value)) {
winforms\Managed\System\WinForms\Control.cs (3)
6869
if (!
Contains
(ctl)) {
11669
if (!
Contains
(ctl) || !nested && ctl.parent != this) ctl = null;
18518
if (target != null && (control == target || control.
Contains
(target))) {
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1321
if (cc != null && (dgv.EditingControl == cc.ActiveControl || dgv.EditingControl.
Contains
(cc.ActiveControl)))
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
7234
if (hWndAtPoint != handle && !control.
Contains
(ctrlAtPoint)) {
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1942
if (!
Contains
(ctl) || !nested && ctl.ParentInternal != this) ctl = null;
2028
if (!
Contains
(ctl) || !nested && ctl.ParentInternal != this) ctl = null;
winforms\Managed\System\WinForms\WebBrowserContainer.cs (1)
357
if (f != null && f.
Contains
(site)) {