Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DiagramItem.CollapseButtonPosition Property

Gets or sets the position of the collapse button.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.2.dll

NuGet Package: DevExpress.Win.Diagram

#Declaration

[DefaultValue(typeof(PointFloat), "0.5,1")]
[DiagramCategory(DiagramCategory.ExpandAndCollapse)]
public virtual PointFloat CollapseButtonPosition { get; set; }

#Property Value

Type Default Description
PointFloat "0.5,1"

PointFloat object that specifies the position of the collapse button in relative coordinates. By default, 0.5,1

#Remarks

The 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.

See Also