Class
ContainerService

Represents the Container service responsible for DiagramContainers in Diagram.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public static class ContainerService

Inheritance: objectContainerService

Methods

CompleteManipulation(CompositeAsyncStateCommand)

Completes the manipulation.

Declaration

cs-api-definition
public static void CompleteManipulation(CompositeAsyncStateCommand compositeCommand)

Parameters

compositeCommand

CompositeAsyncStateCommand

The composite command.

DetachItemsFromContainer(IContainerShape, IEnumerable<object>, CompositeAsyncStateCommand)

Detaches the items from container.

Declaration

cs-api-definition
public static void DetachItemsFromContainer(IContainerShape container, IEnumerable<object> items, CompositeAsyncStateCommand currentCommand)

Parameters

container

IContainerShape

The container.

items

IEnumerable<object>

The items.

currentCommand

CompositeAsyncStateCommand

The current command.

GetChildrenBounds(IContainerShape)

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

Declaration

cs-api-definition
public static Rect GetChildrenBounds(this IContainerShape container)

Parameters

container

IContainerShape

The container.

Returns

Rect

GetContainerChildrenRecursively(IContainerShape)

Gets the container's children recursively.

Declaration

cs-api-definition
public static IEnumerable<object> GetContainerChildrenRecursively(IContainerShape containerShape)

Parameters

containerShape

IContainerShape

The container shape.

Returns

IEnumerable<object>

GetFloatingChildren(IContainerShape)

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

Declaration

cs-api-definition
public static IEnumerable<IDiagramItem> GetFloatingChildren(this IContainerShape container)

Parameters

container

IContainerShape

The container.

Returns

IEnumerable<IDiagramItem>

GetParentContainersRecursively(IContainerChild)

Gets the container's children recursively.

Declaration

cs-api-definition
public static IEnumerable<object> GetParentContainersRecursively(IContainerChild shape)

Parameters

shape

IContainerChild

The shape.

Returns

IEnumerable<object>

GetRootItems(IEnumerable<IDiagramItem>)

Gets only the root items from the given items.

Declaration

cs-api-definition
public static IEnumerable<IDiagramItem> GetRootItems(IEnumerable<IDiagramItem> items)

Parameters

items

IEnumerable<IDiagramItem>

The items.

Returns

IEnumerable<IDiagramItem>

OnChildBoundsChange(IContainerShape, Rect)

Called when [child bounds change].

Declaration

cs-api-definition
public static void OnChildBoundsChange(IContainerShape parentContainer, Rect newChildrenBounds)

Parameters

parentContainer

IContainerShape

The parent container.

newChildrenBounds

Rect

The new children bounds.

OnChildrenBoundsChange(IEnumerable<IDiagramItem>)

Called when [children bounds change].

Declaration

cs-api-definition
public static void OnChildrenBoundsChange(IEnumerable<IDiagramItem> selectedItems)

Parameters

selectedItems

IEnumerable<IDiagramItem>

The selected items.

OnContainerDrop(IContainerShape, IEnumerable<object>, CompositeAsyncStateCommand)

Called when items are dropped in container.

Declaration

cs-api-definition
public static void OnContainerDrop(IContainerShape containerShape, IEnumerable<object> droppedItems, CompositeAsyncStateCommand currentCommand)

Parameters

containerShape

IContainerShape

The container shape.

droppedItems

IEnumerable<object>

The dropped items.

currentCommand

CompositeAsyncStateCommand

The current command.

UpdateContainerLayout(IDragDropAware)

Updates the container layout.

Declaration

cs-api-definition
public static void UpdateContainerLayout(IDragDropAware container)

Parameters

container

IDragDropAware

The container.