Search
IEnumerable.items Method
See Also
 






Gets the collection as an array.

Namespace: MindFusion.Common.Collections
File: IEnumerable.js

 Syntax

JavaScript  Copy Code

function items ()

 Return Value

Array. The underlying array data structure of the collection.

 Example

The following code checks if the items of a ListView before the collection was changed are more than 5:

JavaScript  Copy Code

function listSelectionChanged(sender, args)
{

     if( args.oldItems.items().count() > 5)
     {
             //do something
     }
}

 See Also