4 overrides of CanBeParentedTo
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
24public override bool CanBeParentedTo(IDesigner parentDesigner)
System\Windows\Forms\Design\TabPageDesigner.cs (1)
12public override bool CanBeParentedTo(IDesigner parentDesigner) => (parentDesigner is not null && parentDesigner.Component is TabControl);
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
51public override bool CanBeParentedTo(IDesigner parentDesigner)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
152public override bool CanBeParentedTo(IDesigner parentDesigner)
7 references to CanBeParentedTo
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.cs (1)
401internal override bool CanBeAssociatedWith(IDesigner parentDesigner) => CanBeParentedTo(parentDesigner);
System.Windows.Forms.Design.Tests (6)
ControlDesignerTests.cs (1)
124_designer.CanBeParentedTo(parentDesigner).Should().BeTrue();
System\Windows\Forms\Design\TabPageDesignerTests.cs (2)
27bool result = designer.CanBeParentedTo(mockDesigner.Object); 42bool result = designer.CanBeParentedTo(mockDesigner.Object);
System\Windows\Forms\Design\ToolStripContentPanelDesignerTests.cs (1)
49bool result = _toolStripContentPanelDesigner.CanBeParentedTo(parentDesigner: null!);
System\Windows\Forms\Design\ToolStripPanelDesignerTests.cs (2)
96_designer.CanBeParentedTo(mockDesigner.Object).Should().BeFalse(); 104_designer.CanBeParentedTo(mockDesigner.Object).Should().BeTrue();