Back to Devexpress

DiagramContainer.CanCollapse Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontainer-95daa0bc.md

latest1.7 KB
Original Source

DiagramContainer.CanCollapse Property

Specifies whether the container displays the expand/collapse button.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DefaultValue(false)]
[DiagramCategory(DiagramCategory.Behavior)]
public virtual bool CanCollapse { get; set; }
vb
<DefaultValue(False)>
<DiagramCategory(DiagramCategory.Behavior)>
Public Overridable Property CanCollapse As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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.

See Also

DiagramContainer Class

DiagramContainer Members

DevExpress.XtraDiagram Namespace