InterfaceIContainerShape
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:
public interface IContainerShape : IShape, IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible, ISupportRotation, IDragDropAware
Inherited Members
Properties
Children
Gets the children.
Declaration
IEnumerable<IDiagramItem> Children { get; }
Property Value
ContentBounds
Gets or sets the content bounds.
Declaration
Rect ContentBounds { get; set; }
Property Value
Rect
IsCollapsible
Gets or sets a value indicating whether this container is collapsible.
Declaration
bool IsCollapsible { get; set; }
Property Value
True if this instance is collapsible; otherwise, false.
Items
Gets the items contained in this visual container.
Declaration
DiagramItemCollection Items { get; }
Property Value
ItemsSource
Gets or sets the items source for this container.
MinBounds
Gets the min bounds.
Declaration
Rect MinBounds { get; }
Property Value
Rect
The min bounds.
Methods
AddItem(object, Point?)
Adds item to the Items collection.
Declaration
void AddItem(object item, Point? position = null)
Parameters
item
position
Point?
AddItems(IEnumerable<object>)
Adds items to the Items collection.
Declaration
void AddItems(IEnumerable<object> items)
Parameters
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.
RemoveItems(IEnumerable<object>)
Removes items from the Items collection.
Declaration
void RemoveItems(IEnumerable<object> items)
Parameters
items