Search
ObservableCollection 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
ObservableCollection Class
ObservableCollection Members
ObservableCollection Constructor
ObservableCollection Methods
ObservableCollection Events
MindFusion.Controls
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Initializes a new instance of the ObservableCollection class.

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

## Syntax

JavaScript Copy Code
function ObservableCollection ([items])

### Parameters

items
  Optional.

  Array. The underlying array data structure of the collection.

## Example

The following example creates chart series stored in an ObservableCollection instance:

JavaScript Copy Code
var series = new Collections.ObservableCollection(); series.add(new Charting.BarSeries( new Collections.List([20, 60, 40, 55]), new Collections.List(["Acer", "Biostar", "Foxconn", "Supermicro"]), new Collections.List(["", "", "", ""])));

## See Also

ObservableCollection Class
MindFusion.Common.Collections Namespace