public static bool AddItemWithDefaultSize(DesignItem container, Type createdItem, Size size) { CreateComponentTool cct = new CreateComponentTool(createdItem); return(AddItemWithCustomSize(container, cct.CreateItem(container.Context), new Point(0, 0), size)); }
public static bool AddItemWithDefaultSize(DesignItem container, Type createdItem, Size size) { CreateComponentTool cct = new CreateComponentTool(createdItem); return AddItemWithCustomSize(container, cct.CreateItem(container.Context), new Point(0, 0), size); }
public static bool AddItemWithCustomSizePosition(DesignItem container, Type createdItem, Size size, Point position) { CreateComponentTool cct = new CreateComponentTool(createdItem); return(AddItemWithCustomSize(container, cct.CreateItem(container.Context), position, size)); }
public static bool AddItemWithCustomSizePosition(DesignItem container, Type createdItem, Size size, Point position) { CreateComponentTool cct = new CreateComponentTool(createdItem); return AddItemWithCustomSize(container, cct.CreateItem(container.Context), position, size); }