Search
List Constructor
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML
C#
Visual Basic
Java
JavaScript
C++
XAML
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
MindFusion.Common.Collections
IEnumerable Class
List Class
List Members
List Constructor
ObservableCollection Class
MindFusion.Controls
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Initializes a new instance of the List class.

Namespace: MindFusion.Common.Collections
Assembly: List.js

## Syntax

JavaScript Copy Code
function List ([items])

### Parameters

items
  Optional.

  Array. The underlying array data structure of the list.

## Example

The following code creates a List with products:

JavaScript Copy Code
var product1 = new Object(); product1.title = "Ford"; product1.price = 25345; var product2 = new Object(); product1.title = "BMW"; product1.price = 75300; ...... ..... List products = new List([product1, product2, ...]);

## See Also

List Class
MindFusion.Common.Collections Namespace