ContainerService
Represents the Container service responsible for DiagramContainers in Diagram.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public static class ContainerService
Inheritance: objectContainerService
Methods
Completes the manipulation.
public static void CompleteManipulation(CompositeAsyncStateCommand compositeCommand)
The composite command.
Detaches the items from container.
public static void DetachItemsFromContainer(IContainerShape container, IEnumerable<object> items, CompositeAsyncStateCommand currentCommand)
The container.
itemsIEnumerable<object>The items.
currentCommandCompositeAsyncStateCommandThe current command.
Gets the enclosing bounds of the floating children of a container - shapes and floating connections.
public static Rect GetChildrenBounds(this IContainerShape container)
The container.
Returns:Gets the enclosing bounds of the floating children of a container - shapes and floating connections.
public static Rect GetChildrenBoundsRotated(this IContainerShape container)
The container.
Returns:Gets the container's children recursively.
public static IEnumerable<object> GetContainerChildrenRecursively(IContainerShape containerShape)
The container shape.
Returns:IEnumerable<object>
Gets the floating children of a container - shapes and floating connections.
public static IEnumerable<IDiagramItem> GetFloatingChildren(this IContainerShape container)
The container.
Returns:IEnumerable<IDiagramItem>
Gets the container's children recursively.
public static IEnumerable<object> GetParentContainersRecursively(IContainerChild shape)
The shape.
Returns:IEnumerable<object>
Gets only the root items from the given items.
public static IEnumerable<IDiagramItem> GetRootItems(IEnumerable<IDiagramItem> items)
The items.
Returns:IEnumerable<IDiagramItem>
Called when [child bounds change].
public static void OnChildBoundsChange(IContainerShape parentContainer, Rect newChildrenBounds)
The parent container.
newChildrenBoundsRectThe new children bounds.
Called when [children bounds change].
public static void OnChildrenBoundsChange(IEnumerable<IDiagramItem> selectedItems)
The selected items.
Called when items are dropped in container.
public static void OnContainerDrop(IContainerShape containerShape, IEnumerable<object> droppedItems, CompositeAsyncStateCommand currentCommand)
The container shape.
droppedItemsIEnumerable<object>The dropped items.
currentCommandCompositeAsyncStateCommandThe current command.
Updates the container layout.
public static void UpdateContainerLayout(IDragDropAware container)
The container.