Skip to main content

DiagramControl.SetContainersIsCollapsed(IEnumerable<DiagramContainer>, Boolean) Method

Expands or collapses specified container items.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

public void SetContainersIsCollapsed(
    IEnumerable<DiagramContainer> containers,
    bool isCollapsed
)

Parameters

Name Type Description
containers IEnumerable<DiagramContainer>

A list of container items to expand/collapse.

isCollapsed Boolean

true, to collapse the specified container items; false, to expand.

Remarks

The DiagramContainer.IsCollapsed property specifies whether the container item is collapsed.

See Also