You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

DiagramControl.PrimarySelection Property

Gets the object that is currently the primary selected diagram item. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

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


public DiagramItem PrimarySelection { get; }
Public ReadOnly Property PrimarySelection As DiagramItem

Property Value

Type Description

A DiagramItem object.


When multiple diagram items are selected, one of the items is the primary selected item. It has a selection border that is distinct in appearance from the other selected items.


Typically, the primary selected item is the first item that was selected. When selecting multiple items via the selection rectangle, the primary selected item is the one with the lowest index in the DiagramControl.Items collection.

See Also