Back to Devexpress

DiagramControl.PrimarySelection Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-c0e7af21.md

latest1.7 KB
Original Source

DiagramControl.PrimarySelection Property

Gets the object that is currently the primary selected diagram item.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[Browsable(false)]
public virtual DiagramItem PrimarySelection { get; protected set; }
vb
<Browsable(False)>
Public Overridable Property PrimarySelection As DiagramItem

Property Value

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

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

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace