Back to Devexpress

RepositoryItem.LinkCount Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-c83d47d4.md

latest2.1 KB
Original Source

RepositoryItem.LinkCount Property

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

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
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

Connect(Object)

Disconnect(Object)

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace