All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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