1 implementation of ITreeDesigner
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ComponentDesigner.cs (1)
13
public partial class ComponentDesigner :
ITreeDesigner
, IDesignerFilter, IComponentInitializer
29 references to ITreeDesigner
netstandard (1)
netstandard.cs (1)
270
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
ITreeDesigner
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
256
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
ITreeDesigner
))]
System.Windows.Forms.Design (19)
System\ComponentModel\Design\ComponentDesigner.cs (2)
191
ICollection
ITreeDesigner
.Children
220
IDesigner?
ITreeDesigner
.Parent
System\Windows\Forms\Design\CommandSet.cs (17)
1657
if (host.GetDesigner((IComponent)obj) is
ITreeDesigner
designer)
1697
if (host.GetDesigner(c) is
ITreeDesigner
designer && host.GetDesigner(commonParent) is
ITreeDesigner
commonParentDesigner && designer.Parent != commonParentDesigner)
1701
static List<
ITreeDesigner
> GetDesignerChain(
ITreeDesigner
designer)
1703
List<
ITreeDesigner
> designerChain = [];
1704
while (designer.Parent is
ITreeDesigner
parent)
1713
List<
ITreeDesigner
> designerChain = GetDesignerChain(designer);
1714
List<
ITreeDesigner
> parentDesignerChain = GetDesignerChain(commonParentDesigner);
1718
List<
ITreeDesigner
> shorterList = designerChain.Count < parentDesignerChain.Count ? designerChain : parentDesignerChain;
1719
List<
ITreeDesigner
> longerList = (shorterList == designerChain ? parentDesignerChain : designerChain);
1720
ITreeDesigner
? commonDesigner = null;
1770
if (host.GetDesigner(commonParent) is
ITreeDesigner
{ Children: not null } commonParentDesigner)
1918
ITreeDesigner
? tree = host.GetDesigner(selectedComponent) as
ITreeDesigner
;
1933
tree = tree.Parent as
ITreeDesigner
;
2016
ComponentDesigner? parentCompDesigner = ((
ITreeDesigner
)cDesigner).Parent as ComponentDesigner;
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\ComponentDesignerTests.cs (8)
37
ITreeDesigner
treeDesigner = designer;
104
ITreeDesigner
treeDesigner = designer;
142
ITreeDesigner
treeDesigner = designer;
186
ITreeDesigner
treeDesigner = designer;
392
ITreeDesigner
treeDesigner = designer;
429
ITreeDesigner
treeDesigner = designer;
456
ITreeDesigner
treeDesigner = designer;
480
ITreeDesigner
treeDesigner = designer;