RepositoryItem.LinkCount Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
public virtual int LinkCount { get; }
<Browsable(False)>
Public Overridable ReadOnly Property LinkCount As Integer

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