officefileapi-devexpress-dot-spreadsheet-dot-connectorformat-524e890e.md
Returns or specifies the number of adjustment handles for an elbow or curved connector.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
int HandleCount { get; set; }
Property HandleCount As Integer
| Type | Description |
|---|---|
| Int32 |
The number of adjustment handles (from two to five).
|
Use the HandleCount property to specify the number of adjustment handles for elbow and curved connectors. These handles are used to change a connector’s size and form. A connector can have two to five handles (including connection points).
The code example below creates an elbow connector with three line segments and three handles (“bentConnector3”).
var connector = worksheet.Shapes.AddConnector(ConnectorType.Elbow, 50f, 50f, 450f, 450f);
connector.ConnectorFormat.HandleCount = 3;
Dim connector As Shape = worksheet.Shapes.AddConnector(ConnectorType.Elbow, 50F, 50F, 450F, 450F)
connector.ConnectorFormat.HandleCount = 3
See Also