CreateItem() защищенный Метод

Is called to create the item used by the CreateComponentTool.
protected CreateItem ( DesignContext context ) : DesignItem
context DesignContext
Результат DesignItem
Пример #1
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));
        }
Пример #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);
		}
Пример #3
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));
        }
Пример #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);
		}