ComponentFactory.Krypton.Toolkit.KryptonGroupPanelDesigner.CanBeParentedTo C# (CSharp) Method

CanBeParentedTo() public method

Indicates if this designer's control can be parented by the control of the specified designer.
public CanBeParentedTo ( IDesigner parentDesigner ) : bool
parentDesigner IDesigner The IDesigner that manages the control to check.
return bool
        public override bool CanBeParentedTo(IDesigner parentDesigner)
        {
            // We should only ever exist inside a Krypton group container
            return ((parentDesigner is KryptonGroup) || (parentDesigner is KryptonHeaderGroup));
        }