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

Interface IContainerShape

Defines a shape which acts as an items container for other shapes.

Inherited Members
IShape.Width
IShape.Height
IShape.MinHeight
IShape.MinWidth
IShape.MaxHeight
IShape.MaxWidth
IShape.IncomingLinks
IShape.OutgoingLinks
IShape.Connectors
IShape.IsConnectorsAdornerVisible
IDiagramItem.Initialize(IGraphServiceLocator, IGraphInternal)
IDiagramItem.IsEnabled
IDiagramItem.IsSelected
IDiagramItem.Visibility
IDiagramItem.ZIndex
IDiagramItem.Bounds
IDiagramItem.IsDynamic
IDiagramItem.Id
IDiagramItem.Name
IDiagramItem.Position
IDiagramItem.IsInEditMode
IDiagramItem.IsEditable
IDiagramItem.RenderTransformOrigin
IDiagramItem.Content
ISerializable.Serialize()
ISerializable.Deserialize(SerializationInfo)
ISupportMouseOver.IsMouseOver
IPropertyChanged.PropertyChanged
IGroupable.ParentGroup
IGroupable.ParentGroupChanged
ISupportManipulation.IsRotationEnabled
ISupportManipulation.IsResizingEnabled
ISupportManipulation.IsDraggingEnabled
ISupportManipulation.IsConnectorsManipulationEnabled
ISupportManipulation.IsManipulationAdornerVisible
ISupportManipulation.AllowDelete
ISupportManipulation.AllowCut
ISupportManipulation.AllowCopy
ISupportManipulation.AllowPaste
ISupportVirtualization.VirtualizationState
IContainerChild.ParentContainer
ICollapsible.IsCollapsed
ISupportRotation.ActualBounds
ISupportRotation.RotationAngle
IDragDropAware.OnDrop(DragItemsEventArgs)
IDragDropAware.OnDragLeave(DragItemsEventArgs)
IDragDropAware.OnDragEnter(DragItemsEventArgs)
IDragDropAware.IsDropPossible
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll

Syntax

public interface IContainerShape : IShape, IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible, ISupportRotation, IDragDropAware

Properties

Children

Gets the children.

Declaration
IEnumerable<IDiagramItem> Children { get; }
Property Value
System.Collections.Generic.IEnumerable<IDiagramItem>

ContentBounds

Gets or sets the content bounds.

Declaration
Rect ContentBounds { get; set; }
Property Value
System.Windows.Rect

IsCollapsible

Gets or sets a value indicating whether this container is collapsible.

Declaration
bool IsCollapsible { get; set; }
Property Value
System.Boolean

True if this instance is collapsible; otherwise, false.

Items

Gets the items contained in this visual container.

Declaration
DiagramItemCollection Items { get; }
Property Value
DiagramItemCollection

ItemsSource

Gets or sets the items source for this container.

Declaration
IEnumerable ItemsSource { get; set; }
Property Value
System.Collections.IEnumerable

MinBounds

Gets the min bounds.

Declaration
Rect MinBounds { get; }
Property Value
System.Windows.Rect

The min bounds.

Methods

AddItem(Object, Nullable<Point>)

Adds item to the Items collection.

Declaration
void AddItem(object item, Nullable<Point> position = null)
Parameters
System.Object item

System.Nullable<System.Windows.Point> position

AddItems(IEnumerable<Object>)

Adds items to the Items collection.

Declaration
void AddItems(IEnumerable<object> items)
Parameters
System.Collections.Generic.IEnumerable<System.Object> items

FitToChildren()

Fits the size of the container to its children bounding box.

Declaration
void FitToChildren()

OnContainerItemsDeserialized()

Called when the items in the containers have been deserialized and added to the Items collection.

Declaration
void OnContainerItemsDeserialized()

RefreshBounds()

Refreshes the container bounds after a manipulation.

Declaration
void RefreshBounds()

RemoveItem(Object)

Removes item from the Items collection.

Declaration
void RemoveItem(object item)
Parameters
System.Object item

RemoveItems(IEnumerable<Object>)

Removes items from the Items collection.

Declaration
void RemoveItems(IEnumerable<object> items)
Parameters
System.Collections.Generic.IEnumerable<System.Object> items

Extension Methods

CommonExtensions.GetSupremumContainer(IShape, IShape)
CommonExtensions.Contains(IContainerShape, IDiagramItem)
CommonExtensions.GetItemsRecursively(IContainerShape)
CommonExtensions.HasSelectedChild(IContainerShape)
CollectionExtensions.ToEnumerable<T>(T)
CommonExtensions.GetActualBounds(IDiagramItem, Boolean)
GroupExtensions.GetSupremumGroup(IGroupable, IDiagramItem)
ContainerService.GetFloatingChildren(IContainerShape)
ContainerService.GetChildrenBounds(IContainerShape)
SerializationExtensions.GetSerializationInfo(IDiagramItem)
SerializationExtensions.GetSerializationInfo(IShape)
SerializationExtensions.SetFromSerializationInfo(IDiagramItem, SerializationInfo)
SerializationExtensions.SetFromSerializationInfo(IShape, SerializationInfo)
EnumerableExtensions.ToEnumerable<T>(T)

See Also

IGroup
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML 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.