1 implementation of ITreeDesigner
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ComponentDesigner.cs (1)
13public 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)
191ICollection ITreeDesigner.Children 220IDesigner? ITreeDesigner.Parent
System\Windows\Forms\Design\CommandSet.cs (17)
1657if (host.GetDesigner((IComponent)obj) is ITreeDesigner designer) 1697if (host.GetDesigner(c) is ITreeDesigner designer && host.GetDesigner(commonParent) is ITreeDesigner commonParentDesigner && designer.Parent != commonParentDesigner) 1701static List<ITreeDesigner> GetDesignerChain(ITreeDesigner designer) 1703List<ITreeDesigner> designerChain = []; 1704while (designer.Parent is ITreeDesigner parent) 1713List<ITreeDesigner> designerChain = GetDesignerChain(designer); 1714List<ITreeDesigner> parentDesignerChain = GetDesignerChain(commonParentDesigner); 1718List<ITreeDesigner> shorterList = designerChain.Count < parentDesignerChain.Count ? designerChain : parentDesignerChain; 1719List<ITreeDesigner> longerList = (shorterList == designerChain ? parentDesignerChain : designerChain); 1720ITreeDesigner? commonDesigner = null; 1770if (host.GetDesigner(commonParent) is ITreeDesigner { Children: not null } commonParentDesigner) 1918ITreeDesigner? tree = host.GetDesigner(selectedComponent) as ITreeDesigner; 1933tree = tree.Parent as ITreeDesigner; 2016ComponentDesigner? parentCompDesigner = ((ITreeDesigner)cDesigner).Parent as ComponentDesigner;
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\ComponentDesignerTests.cs (8)
37ITreeDesigner treeDesigner = designer; 104ITreeDesigner treeDesigner = designer; 142ITreeDesigner treeDesigner = designer; 186ITreeDesigner treeDesigner = designer; 392ITreeDesigner treeDesigner = designer; 429ITreeDesigner treeDesigner = designer; 456ITreeDesigner treeDesigner = designer; 480ITreeDesigner treeDesigner = designer;