Skip to main content
A newer version of this page is available. .

XPCollection<T>.Object[Int32] Property

Gets a T object at a specified index in the XPCollection<T>.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

[Browsable(false)]
public T this[int index] { get; }

Parameters

Name Type Description
index Int32

The zero-based index of the object to get.

Property Value

Type Description
T

A T object at the specified index in the collection.

Remarks

This property provides the capability to access a specific object in the XPCollection<T> by its index. Use the following syntax: myCollection[index].

If the XPBaseCollection.LoadingEnabled property is set to true (default value), the collection will be automatically populated with data (if it’s still not populated) when its contents are accessed for the first time.

See Also