Back to Devexpress

DiagramConnector.EndArrow Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramconnector-741c2e80.md

latest4.3 KB
Original Source

DiagramConnector.EndArrow Property

Gets or sets the connector’s end arrow style. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public ArrowDescription EndArrow { get; set; }
vb
Public Property EndArrow As ArrowDescription

Property Value

TypeDescription
DevExpress.Diagram.Core.ArrowDescription

An object that specifies the end arrow style.

|

Remarks

An arrow style is specified by a certain DevExpress.Diagram.Core.ArrowDescription class object.

You can access predefined arrow styles from the DevExpress.Diagram.Core.ArrowDescriptions class, which provides a set of static properties that return ArrowDescription objects.

The available arrow styles are shown in the image below.

Set the EndArrow property to Null to show the connector without an end cap.

To modify the arrow size, use the DiagramConnector.EndArrowSize property.

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

EndArrowSize

BeginArrow

DiagramConnector Class

DiagramConnector Members

DevExpress.Xpf.Diagram Namespace