TryStartInsertNewComponents Method
TryStartInsertNewComponents(DesignItem, IList<DesignItem>, IList<Rect>, PlacementType)
Try to insert new components into the container.
Declaration
public static PlacementOperation TryStartInsertNewComponents(DesignItem container, IList<DesignItem> placedItems, IList<Rect> positions, PlacementType type)
Parameters
Type | Name | Description |
---|---|---|
DesignItem | container | The container that should become the parent of the components. |
System.Collections.Generic.IList<DesignItem> | placedItems | The components to add to the container. |
System.Collections.Generic.IList<System.Windows.Rect> | positions | The rectangle specifying the position the element should get. |
PlacementType | type | The type |
Returns
Type | Description |
---|---|
PlacementOperation | The operation that inserts the new components, or null if inserting is not possible. |