Back to Devexpress

DiagramConnector.BeginItem Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramconnector.md

latest2.0 KB
Original Source

DiagramConnector.BeginItem Property

Gets or sets the start item for the connector.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DefaultValue(null)]
[DiagramCategory(DiagramCategory.Layout)]
public virtual IDiagramItem BeginItem { get; set; }
vb
<DefaultValue(Nothing)>
<DiagramCategory(DiagramCategory.Layout)>
Public Overridable Property BeginItem As IDiagramItem

Property Value

TypeDefaultDescription
DevExpress.Diagram.Core.IDiagramItemnull

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.

See Also

BeginItemPointIndex

DiagramConnector Class

DiagramConnector Members

DevExpress.XtraDiagram Namespace