Back to Devexpress

DiagramOptionsProtection.AllowCollapseContainers Property

windowsforms-devexpress-dot-xtradiagram-dot-options-dot-diagramoptionsprotection-e93c37af.md

latest2.2 KB
Original Source

DiagramOptionsProtection.AllowCollapseContainers Property

Specifies whether to display the expand/collapse button for all containers.

Namespace : DevExpress.XtraDiagram.Options

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DefaultValue(null)]
[DiagramCategory(DiagramCategory.Protection)]
public virtual bool? AllowCollapseContainers { get; set; }
vb
<DefaultValue(Nothing)>
<DiagramCategory(DiagramCategory.Protection)>
Public Overridable Property AllowCollapseContainers As Boolean?

Property Value

TypeDefaultDescription
Nullable<Boolean>null

true to display the expand/collapse button for all containers; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowCollapseContainers
DiagramControl

.OptionsProtection .AllowCollapseContainers

|

Remarks

The DiagramContainer.CanCollapse property allows you to control the collapse functionality for individual containers.

The image below illustrates a collapsible container.

See Also

DiagramOptionsProtection Class

DiagramOptionsProtection Members

DevExpress.XtraDiagram.Options Namespace