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

ShapeGeometry.ConnectionSiteCount Property

Returns the number of a shape’s connection sites.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

int ConnectionSiteCount { get; }

#Property Value

Type Description
Int32

A Int32 value that is the connection sites’ number.

#Remarks

A connection site is used to attach connectors. The number and index order of connection sites depends on the shape’s geometry type. Generally, the index starts with the top side (0) and grows counterclockwise, as shown below.

Spreadsheet_ConnectionSites XtraSpreadsheet_ConnectionSites_3D

Use ConnectorFormat.ConnectStartPoint and ConnectorFormat.ConnectEndPoint method to attach a connector to the shape’s connection site.

See Also