Skip to main content
A newer version of this page is available. .

DiagramConnector.BeginItem Property

Gets or sets the start item for the connector. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Diagram, DevExpress.Wpf.Diagram

Declaration

public IDiagramItem BeginItem { get; set; }

Property Value

Type Description
DevExpress.Diagram.Core.IDiagramItem

The connector’s start item.

Remarks

You can “glue” a connector to one of predefined points (connection points) on a shape with the DiagramConnector.BeginItemPointIndex property. If this property is set to -1, the connection point will be determined automatically based on the connector’s direction.

Instead of linking a connector to a certain diagram item or its point, you can start the connector at any point within the diagram canvas. To accomplish this, set the BeginItem property to null and specify the start point with the DiagramConnector.BeginPoint property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BeginItem 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.

See Also