Skip to main content
All docs
V24.1

DiagramShape.containerChildItemIds Property

Gets identifiers of shapes stored in the container.

Declaration

containerChildItemIds: string[]

Property Value

Type Description
string[]

An array of shapes identifiers. An empty string if the container stores no shapes or the shape is not a container.

Remarks

Horizontal and vertical containers can store other shapes. Use the containerId property to get the identifier of the container (if any) that stores the shape. The containerChildItemIds property allows you to get identifiers of shapes stored in the container.

Run Demo: Containers

When a user pastes or clones several items in a diagram, the control adds the items to the model one by one. For each added item, the RequestEditOperation event fires. In the event handler, you can access the processed item. However, if you call the GetItemById(id) method to access a container’s child item, you can get the undefinedresult if the item is not added to the model yet.

See Also