Skip to main content

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

RepositoryItem.LinkCount Property

Gets the number of objects connected to the current repository item.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public virtual int LinkCount { get; }

#Property Value

Type Description
Int32

An integer value representing the number of repository item connections.

#Remarks

The LinkCount property is used internally by container controls to determine the number of elements (grid columns, for instance) connected to the current repository item. Each time a new object connects to a repository item, the number of connections for the item is increased by one. Once the connection between the connected object and the item is removed, the number of connections is automatically decreased.

The repository item can only be deleted from a RepositoryItemCollection when it is not connected to any object (its LinkCount property value is 0).

See Also