Skip to main content

DiagramItem.Position Property

Gets or sets the coordinates of the item’s upper left corner relative to the diagram canvas.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.2.dll

Declaration

[CustomAction(typeof(ActionAffectsConnectorsRouting))]
[DefaultValue(typeof(PointFloat), "0,0")]
[DiagramCategory(DiagramCategory.Layout)]
public virtual PointFloat Position { get; set; }

Property Value

Type Default Description
PointFloat "0,0"

The coordinates of the item’s upper left corner.

Remarks

For items within a container, the DiagramItem.Position property specifies the coordinates of the item’s upper left corner relative to the container.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Position property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also