ComponentFactory.Krypton.Toolkit.ViewLayoutScrollViewport.RevertParent C# (CSharp) Method

RevertParent() public method

Revert the provided control back to a different control.
public RevertParent ( Control newParent, Control c ) : void
newParent System.Windows.Forms.Control Control to become parent.
c System.Windows.Forms.Control Control to reparent.
return void
        public void RevertParent(Control newParent, Control c)
        {
            // Remove control from current collection
            CommonHelper.RemoveControlFromParent(c);

            // Add to our child control
            CommonHelper.AddControlToParent(newParent, c);
        }