Back to Devexpress

DiagramControl.SelectItem(DiagramItem, ModifySelectionMode) Method

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-dot-selectitem-x28-devexpress-dot-xpf-dot-diagram-dot-diagramitem-devexpress-dot-diagram-dot-core-dot-modifyselectionmode-x29.md

latest2.2 KB
Original Source

DiagramControl.SelectItem(DiagramItem, ModifySelectionMode) Method

Selects the specified diagram item.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public void SelectItem(
    DiagramItem item,
    ModifySelectionMode modifySelectionMode = ModifySelectionMode.ReplaceSelection
)
vb
Public Sub SelectItem(
    item As DiagramItem,
    modifySelectionMode As ModifySelectionMode = ModifySelectionMode.ReplaceSelection
)

Parameters

NameTypeDescription
itemDiagramItem

A DiagramItem object that is the item to select.

|

Optional Parameters

NameTypeDefaultDescription
modifySelectionModeModifySelectionModeReplaceSelection

A ModifySelectionMode enumeration value that specifies whether to add or replace the existing selection with the specified diagram item.

|

See Also

SelectAll()

SelectItems

UnselectItem(DiagramItem)

ClearSelection()

SelectionChanged

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace