The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

Shape.ConnectorFormat Property

Provides access to the shape connector settings.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

ConnectorFormat ConnectorFormat { get; }
ReadOnly Property ConnectorFormat As ConnectorFormat
ConnectorFormat ConnectorFormat { get; }
ReadOnly Property ConnectorFormat As ConnectorFormat

Property Value

Type Description
ConnectorFormat

A ConnectorFormat object containing the shape connector options.

Property Value

Type Description
ConnectorFormat

A ConnectorFormat object containing the shape connector options.

Remarks

Use the ConnectorFormat options to modify a shape connector: change its type (ConnectorFormat.ConnectorType), outline color (ShapeFormatBase.Outline), create arrowheads (ConnectorFormat.Arrows), and bind the connector to shapes (ConnectorFormat.ConnectStartPoint , ConnectorFormat.ConnectEndPoint).

Examples

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