Skip to main content
All docs
V24.1

DiagramShape.containerId Property

Gets the identifier of the container that stores the shape.

Declaration

containerId: string

Property Value

Type Description
string

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

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

See Also