DiagramItem.CollapseButtonHorizontalAlignment Property

Gets or sets the horizontal alignment of the collapse button.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v20.1.dll


public Alignment CollapseButtonHorizontalAlignment { get; set; }
Public Property CollapseButtonHorizontalAlignment As Alignment

Property Value

Type Description

A DevExpress.Diagram.Core.Alignment enumeration value that specifies the horizontal alignment of the collapse button.


The DiagramItem.CollapseButtonPosition and DiagramItem.CollapseButtonOffset properties define the actual position of the collapse button. The DiagramItem.CollapseButtonPosition property is set in relative coordinates within the shape border. 0,0 corresponds to the top-left corner of the shape border, 1,1 corresponds to the bottom-right corner. The DiagramItem.CollapseButtonOffset property specifies the offset in absolute coordinates.

The CollapseButtonHorizontalAlignment and CollapseButtonVerticalAlignment properties specify the alignment of the collapse button's border relative to its actual position. The images below illustrate the collapse button placement when the CollapseButtonVerticalAlignment property is set to Center.

  • CollapseButtonHorizontalAlignment is Near

  • CollapseButtonHorizontalAlignment is Center

  • CollapseButtonHorizontalAlignment is Far


See Also