Method AddItemWithDefaultSize
- Namespace
- Alternet.FormDesigner.Wpf
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
AddItemWithDefaultSize(DesignItem, Type, Size)
Adds the given item with the specified size and default position.
public static bool AddItemWithDefaultSize(DesignItem container, Type createdItem, Size size)
Parameters
container
DesignItemThe
DesignItem
that will contain the item to be added.createdItem
TypeCreated item to be added.
size
SizeThe new size of the item.
Returns
- bool
True if the item is successfully added; otherwise, false.
AddItemWithDefaultSize(DesignItem, DesignItem, Point)
Adds the given item with the default size.
public virtual bool AddItemWithDefaultSize(DesignItem container, DesignItem createdItem, Point position)
Parameters
container
DesignItemThe
DesignItem
that will contain the item to be added.createdItem
DesignItemCreated item to be added.
position
PointThe position the item should get.
Returns
- bool
True if the item is successfully added; otherwise, false.