Skip to main content

DiagramContainer.CanCollapse Property

Specifies whether the container displays the expand/collapse button.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[DefaultValue(false)]
[DiagramCategory(DiagramCategory.Behavior)]
public virtual bool CanCollapse { get; set; }

Property Value

Type Default Description
Boolean false

true to display the expand/collapse button within the container; otherwise, false.

Remarks

Set the DiagramOptionsProtection.AllowCollapseContainers property to true to display the expand/collapse button for all containers. The CanCollapse property allows you to control the collapse functionality for individual containers.

The image below illustrates a collapsible container.

Collapsible Container

See Also