DiagramQueryConnectionPointsEventArgs.ItemConnectionBorderState Property
Specifies whether to enable connection to an item and show a visual indication.
Namespace: DevExpress.Xpf.Diagram
Assembly: DevExpress.Xpf.Diagram.v19.2.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ItemConnectionBorderState property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.