.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ConnectorFormat.Arrows Property

Provides access to the connector arrowhead properties.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll


ArrowSettings Arrows { get; }

Property Value

Type Description

A ArrowSettings object containing the arrowhead options.


Use the ArrowSettings properties to specify the arrowhead type (ArrowSettings.StartArrowheadType and ArrowSettings.EndArrowheadType), length (ArrowSettings.StartArrowheadLength and ArrowSettings.EndArrowheadLength) and width (ArrowSettings.StartArrowheadWidth and ArrowSettings.EndArrowheadWidth).


The code sample below shows how to insert a shape connector, provide it with arrows, change the outline color and attach it to shapes. Both ends are connected to the third connection site of each shape.


// Insert a shape connector.
Shape shapeConnector = worksheet.Shapes.AddConnector(ConnectorType.Curved, 10, 10, 100, 100);
// Adjust the connector's outline.
shapeConnector.Outline.Width = 2.5;

// Convert the connector's ends into arrows.
ConnectorFormat connectorFormat = shapeConnector.ConnectorFormat;
connectorFormat.Arrows.StartArrowheadType = ArrowheadType.Stealth;
connectorFormat.Arrows.StartArrowheadWidth = ArrowheadSize.Large;
connectorFormat.Arrows.StartArrowheadLength = ArrowheadSize.Large;

connectorFormat.Arrows.EndArrowheadType = ArrowheadType.Stealth;
connectorFormat.Arrows.EndArrowheadWidth = ArrowheadSize.Large;
connectorFormat.Arrows.EndArrowheadLength = ArrowheadSize.Large;

// Bind the connector to two shapes.
connectorFormat.ConnectStartPoint(shape1, 3);
connectorFormat.ConnectEndPoint(shape2, 3);
See Also