Back to Devexpress

DiagramDataBindingController.ConnectorsSource Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramdatabindingcontroller.md

latest4.8 KB
Original Source

DiagramDataBindingController.ConnectorsSource Property

Gets or sets the data source for connectors.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DiagramCategory(DiagramCategory.Data)]
public virtual IEnumerable ConnectorsSource { get; set; }
vb
<DiagramCategory(DiagramCategory.Data)>
Public Overridable Property ConnectorsSource As IEnumerable

Property Value

TypeDescription
IEnumerable

An IEnumerable object that provides data to the DiagramDataBindingController.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ConnectorsSource 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.

how-to-generate-a-diagram-from-a-collection-using-diagramdatabindingcontroller-t477927/CS/DiagramDataControllerBehavior/Form1.cs#L19

csharp
diagramDataBindingController1.DataSource = ClassStructureGenerator.ClassList();
diagramDataBindingController1.ConnectorsSource = ClassStructureGenerator.ConnectionList();

How-to-bind-diagram-items-Position/CS/DXSample/Form1.cs#L17

csharp
diagramDataBindingController1.KeyMember = "Id";
diagramDataBindingController1.ConnectorsSource = viewModel.Connections;
diagramDataBindingController1.ConnectorFromMember = "From";

winforms-generate-diagram-with-grouped-items/CS/DiagramDataControllerBehavior/Form1.cs#L26

csharp
diagramDataBindingController1.DataSource = viewModel.Departments;
diagramDataBindingController1.ConnectorsSource = viewModel.Relations;
diagramDataBindingController1.EndInit();

how-to-generate-a-diagram-from-a-collection-using-diagramdatabindingcontroller-t477927/VB/DiagramDataControllerBehavior/Form1.vb#L18

vb
diagramDataBindingController1.DataSource = ClassStructureGenerator.ClassList()
diagramDataBindingController1.ConnectorsSource = ClassStructureGenerator.ConnectionList()

How-to-bind-diagram-items-Position/VB/DXSample/Form1.vb#L17

vb
diagramDataBindingController1.KeyMember = "Id"
diagramDataBindingController1.ConnectorsSource = viewModel.Connections
diagramDataBindingController1.ConnectorFromMember = "From"

winforms-generate-diagram-with-grouped-items/VB/DiagramDataControllerBehavior/Form1.vb#L28

vb
diagramDataBindingController1.DataSource = viewModel.Departments
diagramDataBindingController1.ConnectorsSource = viewModel.Relations
diagramDataBindingController1.EndInit()

See Also

DataSource

DiagramDataBindingController Class

DiagramDataBindingController Members

DevExpress.XtraDiagram Namespace