Back to Devexpress

DiagramConnector.Type Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramconnector-b6f2861f.md

latest4.0 KB
Original Source

DiagramConnector.Type Property

Gets or sets the connector’s type. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
[CustomAction(typeof(ActionAffectsConnectorsRouting))]
public ConnectorType Type { get; set; }
vb
<CustomAction(GetType(ActionAffectsConnectorsRouting))>
Public Property Type As ConnectorType

Property Value

TypeDescription
ConnectorType

The connector’s type.

|

Remarks

The following connector types are available:

  • RightAngle - A right angle connector.
  • Straight - A straight line.
  • Curved - A curved connector.

The DiagramConnector.Points property specifies intermediate turn points for a connector.

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

wpf-diagram-use-diagramdatabindingbehavior-to-generate-diagram-from-collection/CS/DiagramDataBindingBehavior/MainWindow.xaml#L28

xml
</dxdiag:DiagramContainer>
<dxdiag:DiagramConnector BeginPoint="300,164" CanDragBeginPoint="False" CanChangeRoute="False" CanDragEndPoint="False" EndArrow="ClosedASMEArrow" EndArrowSize="10,10" EndPoint="390,254" Points="(Empty)" StrokeId="Black" TemplateName="ClassConnector" Type="Straight"/>
<dxdiag:DiagramContainer Anchors="Left, Top" BackgroundId="Dark_2" CanCopyWithoutParent="True" ConnectionPoints="0.5,0 1,0.5 0.5,1 0,0.5" CanAddItems="False" DragMode="ByAnyPoint" Height="78" ItemsCanChangeParent="False" ItemsCanAttachConnectorEndPoint="False" ItemsCanAttachConnectorBeginPoint="False" ItemsCanSelect="False" ItemsCanEdit="False" ItemsCanCopyWithoutParent="False" ItemsCanMove="False" ItemsCanRotate="False" ItemsCanSnapToOtherItems="False" ItemsCanDeleteWithoutParent="False" ItemsCanSnapToThisItem="False" ItemsCanResize="False" Position="428,369" StrokeId="Black" Shape="StandardContainers.Alternating" ShowHeader="False" StrokeDashArray="5 3" ThemeStyleId="ShapeId.Focused1" TemplateName="InterfaceShape" Width="200">

wpf-diagram-use-diagramorgchartbehavior-to-generate-diagram-from-collection/CS/OrgChartBindingExample/MainWindow.xaml#L39

xml
</dxdiag:DiagramContainer>
    <dxdiag:DiagramConnector BeginPoint="430,190" CanDragBeginPoint="False" CanChangeRoute="False" CanDragEndPoint="False" EndArrow="IndentedFilledArrow" EndArrowSize="12,7" EndPoint="520,280" Points="(Empty)" StrokeThickness="2" ThemeStyleId="ShapeId.Balanced5" Type="Straight"/>
</dxdiag:DiagramControl>

See Also

DiagramConnector Class

DiagramConnector Members

DevExpress.Xpf.Diagram Namespace