protected Control GetControl(object component) { IComponent comp = component as IComponent; if (comp != null && comp.Site != null) { IDesignerHost host = comp.Site.GetService(typeof(IDesignerHost)) as IDesignerHost; if (host != null) { ControlDesigner designer = host.GetDesigner(comp) as ControlDesigner; if (designer != null) { return(designer.Control); } } } return(null); }
public ControlDesignerAccessibleObject(ControlDesigner designer, Control control) { throw new NotImplementedException(); }
public bool CanParent(ControlDesigner designer) { return(CanParent(designer.Control)); }