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

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

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

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

Derived Classes: RadDiagramContainerShape

Inherited Members IShape.WidthIShape.HeightIShape.MinHeightIShape.MinWidthIShape.MaxHeightIShape.MaxWidthIShape.IncomingLinksIShape.OutgoingLinksIShape.ConnectorsIShape.IsConnectorsAdornerVisibleIDiagramItem.Initialize(IGraphServiceLocator, IGraphInternal)IDiagramItem.IsEnabledIDiagramItem.IsSelectedIDiagramItem.VisibilityIDiagramItem.ZIndexIDiagramItem.BoundsIDiagramItem.IsDynamicIDiagramItem.IdIDiagramItem.NameIDiagramItem.PositionIDiagramItem.IsInEditModeIDiagramItem.IsEditableIDiagramItem.RenderTransformOriginIDiagramItem.ContentISerializable.Serialize()ISerializable.Deserialize(SerializationInfo)ISupportMouseOver.IsMouseOverIPropertyChanged.PropertyChangedIGroupable.ParentGroupIGroupable.ParentGroupChangedISupportManipulation.IsRotationEnabledISupportManipulation.IsResizingEnabledISupportManipulation.IsDraggingEnabledISupportManipulation.IsConnectorsManipulationEnabledISupportManipulation.IsManipulationAdornerVisibleISupportManipulation.AllowDeleteISupportManipulation.AllowCutISupportManipulation.AllowCopyISupportManipulation.AllowPasteISupportVirtualization.VirtualizationStateIContainerChild.ParentContainerICollapsible.IsCollapsedISupportRotation.ActualBoundsISupportRotation.RotationAngleIDragDropAware.OnDrop(DragItemsEventArgs)IDragDropAware.OnDragLeave(DragItemsEventArgs)IDragDropAware.OnDragEnter(DragItemsEventArgs)IDragDropAware.IsDropPossible...

Properties

Gets the children.

C#
IEnumerable<IDiagramItem> ChildrenItems { get; }

Gets or sets the content bounds.

C#
Rect ContentBounds { get; set; }

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

C#
bool IsCollapsible { get; set; }
Property Value:

True if this instance is collapsible; otherwise, false.

Gets the items contained in this visual container.

C#
DiagramItemCollection Items { get; }

Gets or sets the items source for this container.

C#
IEnumerable ItemsSource { get; set; }

Gets the min bounds.

C#
Rect MinBounds { get; }
Property Value:

The min bounds.

Methods

Adds item to the Items collection.

C#
void AddItem(object item, Point? position = null)
Parameters:itemobjectpositionPoint?

Adds items to the Items collection.

C#
void AddItems(IEnumerable<object> items)
Parameters:itemsIEnumerable<object>

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

C#
void FitToChildren()

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

C#
void OnContainerItemsDeserialized()

Refreshes the container bounds after a manipulation.

C#
void RefreshBounds()

Removes item from the Items collection.

C#
void RemoveItem(object item)
Parameters:itemobject

Removes items from the Items collection.

C#
void RemoveItems(IEnumerable<object> items)
Parameters:itemsIEnumerable<object>

Extension Methods