CreateItem() protected method

Is called to create the item used by the CreateComponentTool.
protected CreateItem ( DesignContext context ) : DesignItem
context DesignContext
return DesignItem
        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));
        }
示例#2
0
		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));
        }
示例#4
0
		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);
		}