skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ContainerService

Represents the Container service responsible for DiagramContainers in Diagram.

Inheritance
System.Object
ContainerService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll

Syntax

public static class ContainerService

Methods

CompleteManipulation(CompositeAsyncStateCommand)

Completes the manipulation.

Declaration
public static void CompleteManipulation(CompositeAsyncStateCommand compositeCommand)
Parameters
CompositeAsyncStateCommand compositeCommand

The composite command.

DetachItemsFromContainer(IContainerShape, IEnumerable<Object>, CompositeAsyncStateCommand)

Detaches the items from container.

Declaration
public static void DetachItemsFromContainer(IContainerShape container, IEnumerable<object> items, CompositeAsyncStateCommand currentCommand)
Parameters
IContainerShape container

The container.

System.Collections.Generic.IEnumerable<System.Object> items

The items.

CompositeAsyncStateCommand currentCommand

The current command.

GetChildrenBounds(IContainerShape)

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

Declaration
public static Rect GetChildrenBounds(this IContainerShape container)
Parameters
IContainerShape container

The container.

Returns
Rect

GetChildrenBoundsRotated(IContainerShape)

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

Declaration
public static Rect GetChildrenBoundsRotated(this IContainerShape container)
Parameters
IContainerShape container

The container.

Returns
Rect

GetContainerChildrenRecursively(IContainerShape)

Gets the container's children recursively.

Declaration
public static IEnumerable<object> GetContainerChildrenRecursively(IContainerShape containerShape)
Parameters
IContainerShape containerShape

The container shape.

Returns
System.Collections.Generic.IEnumerable<System.Object>

GetFloatingChildren(IContainerShape)

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

Declaration
public static IEnumerable<IDiagramItem> GetFloatingChildren(this IContainerShape container)
Parameters
IContainerShape container

The container.

Returns
System.Collections.Generic.IEnumerable<IDiagramItem>

GetParentContainersRecursively(IContainerChild)

Gets the container's children recursively.

Declaration
public static IEnumerable<object> GetParentContainersRecursively(IContainerChild shape)
Parameters
IContainerChild shape

The shape.

Returns
System.Collections.Generic.IEnumerable<System.Object>

GetRootItems(IEnumerable<IDiagramItem>)

Gets only the root items from the given items.

Declaration
public static IEnumerable<IDiagramItem> GetRootItems(IEnumerable<IDiagramItem> items)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem> items

The items.

Returns
System.Collections.Generic.IEnumerable<IDiagramItem>

OnChildBoundsChange(IContainerShape, Rect)

Called when [child bounds change].

Declaration
public static void OnChildBoundsChange(IContainerShape parentContainer, Rect newChildrenBounds)
Parameters
IContainerShape parentContainer

The parent container.

Rect newChildrenBounds

The new children bounds.

OnChildrenBoundsChange(IEnumerable<IDiagramItem>)

Called when [children bounds change].

Declaration
public static void OnChildrenBoundsChange(IEnumerable<IDiagramItem> selectedItems)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem> selectedItems

The selected items.

OnContainerDrop(IContainerShape, IEnumerable<Object>, CompositeAsyncStateCommand)

Called when items are dropped in container.

Declaration
public static void OnContainerDrop(IContainerShape containerShape, IEnumerable<object> droppedItems, CompositeAsyncStateCommand currentCommand)
Parameters
IContainerShape containerShape

The container shape.

System.Collections.Generic.IEnumerable<System.Object> droppedItems

The dropped items.

CompositeAsyncStateCommand currentCommand

The current command.

UpdateContainerLayout(IDragDropAware)

Updates the container layout.

Declaration
public static void UpdateContainerLayout(IDragDropAware container)
Parameters
IDragDropAware container

The container.

Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.