Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ArrowSettings.EndArrowheadType Property

Gets or sets the type of an arrowhead at the end of a connector.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

ArrowheadType EndArrowheadType { get; set; }

#Property Value

Type Description
ArrowheadType

One of the A ArrowheadType enumeration values indicating the arrowhead’s type.

Available values:

Name Description Example
None

A connector has no arrowhead at the specified end.

Triangle

A triangular arrowhead.

SpreadsheetControl_ArrowType_Triangle

Open

An open arrowhead.

SpreadsheetControl_ArrowType_Open

Stealth

A stealth-shaped arrowhead.

SpreadsheetControl_ArrowType_Stealth

Diamond

A diamond-shaped arrowhead.

SpreadsheetControl_ArrowType_Diamond

Oval

An oval-shaped arrowhead.

SpreadsheetControl_ArrowType_Oval

#Property Paths

You can access this nested property as listed below:

Object Type Path to EndArrowheadType
ConnectorFormat
.Arrows .EndArrowheadType

#Remarks

Specify the arrowhead’s size using the ArrowSettings.EndArrowheadLength and ArrowSettings.EndArrowheadWidth properties.

#Example

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.

Spreadsheet_AddShapeConnector

// Insert a shape connector.
Shape shapeConnector = worksheet.Shapes.AddConnector(ConnectorType.Curved, 10, 10, 100, 100);
// Adjust the connector's outline.
shapeConnector.Outline.SetSolidFill(Color.Black);
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