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

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Diagram

#Declaration

[Browsable(false)]
public DiagramItem PrimarySelection { get; }

#Property Value

Type Description
DiagramItem

A DiagramItem object.

#Remarks

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.

PrimarySelection

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