Back to Devexpress

DiagramItem.CollapseButtonVerticalAlignment Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramitem-4932950e.md

latest3.5 KB
Original Source

DiagramItem.CollapseButtonVerticalAlignment Property

Gets or sets the vertical alignment of the collapse button’s border relative to its actual position.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DefaultValue(Alignment.Center)]
[DiagramCategory(DiagramCategory.ExpandAndCollapse)]
public virtual Alignment CollapseButtonVerticalAlignment { get; set; }
vb
<DefaultValue(Alignment.Center)>
<DiagramCategory(DiagramCategory.ExpandAndCollapse)>
Public Overridable Property CollapseButtonVerticalAlignment As Alignment

Property Value

TypeDefaultDescription
AlignmentCenter

An Alignment enumeration value that specifies the vertical alignment of the collapse button.

|

Available values:

NameDescription
Near

In a left-to-right layout, items are aligned to the left from the layout axis. In a right-to-left layout, items are aligned to the right.

| | Center |

Items are aligned along the layout axis.

| | Far |

In a left-to-right layout, items are aligned to the right from the layout axis. In a right-to-left layout, items are aligned to the left.

|

Remarks

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 CollapseButtonVerticalAlignment and DiagramItem.CollapseButtonHorizontalAlignment 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 DiagramItem.CollapseButtonHorizontalAlignment property is set to Alignment.Center.

See Also

DiagramItem Class

DiagramItem Members

DevExpress.XtraDiagram Namespace