Skip to main content
All docs

DiagramShape.containerId Property

Gets the identifier of the container that stores the shape.


containerId: string

Property Value

Type Description

The identifier of the container if the shape is stored in a container; otherwise, null.


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

See Also