Interface
IContainerShape

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

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

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

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

Children

Gets the children.

Declaration

cs-api-definition
IEnumerable<IDiagramItem> Children { get; }

Property Value

IEnumerable<IDiagramItem>

ContentBounds

Gets or sets the content bounds.

Declaration

cs-api-definition
Rect ContentBounds { get; set; }

Property Value

Rect

IsCollapsible

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

Declaration

cs-api-definition
bool IsCollapsible { get; set; }

Property Value

bool

True if this instance is collapsible; otherwise, false.

Items

Gets the items contained in this visual container.

Declaration

cs-api-definition
DiagramItemCollection Items { get; }

Property Value

DiagramItemCollection

ItemsSource

Gets or sets the items source for this container.

Declaration

cs-api-definition
IEnumerable ItemsSource { get; set; }

Property Value

IEnumerable

MinBounds

Gets the min bounds.

Declaration

cs-api-definition
Rect MinBounds { get; }

Property Value

Rect

The min bounds.

Methods

AddItem(object, Point?)

Adds item to the Items collection.

Declaration

cs-api-definition
void AddItem(object item, Point? position = null)

Parameters

item

object

position

Point?

AddItems(IEnumerable<object>)

Adds items to the Items collection.

Declaration

cs-api-definition
void AddItems(IEnumerable<object> items)

Parameters

items

IEnumerable<object>

FitToChildren()

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

Declaration

cs-api-definition
void FitToChildren()

OnContainerItemsDeserialized()

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

Declaration

cs-api-definition
void OnContainerItemsDeserialized()

RefreshBounds()

Refreshes the container bounds after a manipulation.

Declaration

cs-api-definition
void RefreshBounds()

RemoveItem(object)

Removes item from the Items collection.

Declaration

cs-api-definition
void RemoveItem(object item)

Parameters

item

object

RemoveItems(IEnumerable<object>)

Removes items from the Items collection.

Declaration

cs-api-definition
void RemoveItems(IEnumerable<object> items)

Parameters

items

IEnumerable<object>

Extension Methods