Skip to main content

CollectionSourceBase.GetCount() Method

Returns the number of objects contained in the Collection Source’s CollectionSourceBase.Collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v25.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public virtual int GetCount()

Returns

Type Description
Int32

The number of objects that are contained in the current Collection Source’s collection.

Remarks

Use this property to count the objects in the Collection Source’s collection. When deriving from the CollectionSourceBase class, override this method to return the Collection Source’s count of objects.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetCount() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also