New to Telerik UI for WinFormsStart a free 30-day trial

Represents the Container service responsible for DiagramContainers in Diagram.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public static class ContainerService

Inheritance: objectContainerService

Methods

Completes the manipulation.

C#
public static void CompleteManipulation(CompositeAsyncStateCommand compositeCommand)
Parameters:compositeCommandCompositeAsyncStateCommand

The composite command.

Detaches the items from container.

C#
public static void DetachItemsFromContainer(IContainerShape container, IEnumerable<object> items, CompositeAsyncStateCommand currentCommand)
Parameters:containerIContainerShape

The container.

itemsIEnumerable<object>

The items.

currentCommandCompositeAsyncStateCommand

The current command.

Gets the enclosing bounds of the floating children of a container - shapes and floating connections.

C#
public static Rect GetChildrenBounds(this IContainerShape container)
Parameters:containerIContainerShape

The container.

Returns:

Rect

Gets the enclosing bounds of the floating children of a container - shapes and floating connections.

C#
public static Rect GetChildrenBoundsRotated(this IContainerShape container)
Parameters:containerIContainerShape

The container.

Returns:

Rect

Gets the container's children recursively.

C#
public static IEnumerable<object> GetContainerChildrenRecursively(IContainerShape containerShape)
Parameters:containerShapeIContainerShape

The container shape.

Returns:

IEnumerable<object>

Gets the floating children of a container - shapes and floating connections.

C#
public static IEnumerable<IDiagramItem> GetFloatingChildren(this IContainerShape container)
Parameters:containerIContainerShape

The container.

Returns:

IEnumerable<IDiagramItem>

Gets the container's children recursively.

C#
public static IEnumerable<object> GetParentContainersRecursively(IContainerChild shape)
Parameters:shapeIContainerChild

The shape.

Returns:

IEnumerable<object>

Gets only the root items from the given items.

C#
public static IEnumerable<IDiagramItem> GetRootItems(IEnumerable<IDiagramItem> items)
Parameters:itemsIEnumerable<IDiagramItem>

The items.

Returns:

IEnumerable<IDiagramItem>

Called when [child bounds change].

C#
public static void OnChildBoundsChange(IContainerShape parentContainer, Rect newChildrenBounds)
Parameters:parentContainerIContainerShape

The parent container.

newChildrenBoundsRect

The new children bounds.

Called when [children bounds change].

C#
public static void OnChildrenBoundsChange(IEnumerable<IDiagramItem> selectedItems)
Parameters:selectedItemsIEnumerable<IDiagramItem>

The selected items.

Called when items are dropped in container.

C#
public static void OnContainerDrop(IContainerShape containerShape, IEnumerable<object> droppedItems, CompositeAsyncStateCommand currentCommand)
Parameters:containerShapeIContainerShape

The container shape.

droppedItemsIEnumerable<object>

The dropped items.

currentCommandCompositeAsyncStateCommand

The current command.

Updates the container layout.

C#
public static void UpdateContainerLayout(IDragDropAware container)
Parameters:containerIDragDropAware

The container.