Skip to main content
.NET Framework 4.6.2+

XPCollection<T>.Object[Int32] Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.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