Skip to main content

DiagramQueryConnectionPointsEventArgs.ItemConnectionBorderState Property

Specifies whether to enable connection to an item and show a visual indication.

Namespace: DevExpress.Xpf.Diagram

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

NuGet Package: DevExpress.Wpf.Diagram

Declaration

public ConnectionElementState ItemConnectionBorderState { get; set; }

Property Value

Type Description
ConnectionElementState

A ConnectionElementState enumeration value.

Available values:

Name Description
Visible

Connection is enabled.

Hidden

Connection is disabled with no visual indication.

Disabled

Connection is disabled. Visual indication (red border around an item/connector) is shown.

Remarks

The DiagramQueryConnectionPointsEventArgs.HoveredItem property returns the item hovered with the connection point that is being moved by the end-user.

Set the ItemConnectionBorderState property to either ConnectionElementState.Hidden or ConnectionElementState.Disabled to prevent the end-user from connecting to an item.

Use the DiagramQueryConnectionPointsEventArgs.ItemConnectionPointStates property to specify whether to enable connection to individual connection points and show a visual indication.

See Also