<li><ahref="../../../System/Collections/ObjectModel/KeyedCollection.html"title="class in System.Collections.ObjectModel"><spanclass="strong">Next Class</span></a></li>
<divclass="block">Initializes a new instance of the Collection<> class that is empty.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colOne"><code><strong><ahref="../../../System/Collections/ObjectModel/Collection.html#Collection(java.util.List)">Collection</a></strong>(java.util.List<<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a>> list)</code>
<divclass="block">Initializes a new instance of the Collection<> class as a wrapper for the specified list.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../System/Collections/ObjectModel/Collection.html#Add(T)">Add</a></strong>(<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</code>
<divclass="block">Adds an object to the end of the Collection<>.</div>
<divclass="block">Gets the element at the specified index.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>protected java.util.List<<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a>></code></td>
<divclass="block">Gets a java.util.List<T> wrapper around the System.Collections.ObjectModel.Collection<T>.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>int</code></td>
<tdclass="colLast"><code><strong><ahref="../../../System/Collections/ObjectModel/Collection.html#IndexOf(T)">IndexOf</a></strong>(<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</code>
<divclass="block">Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<>.</div>
<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</code>
<divclass="block">Inserts an element into the Collection<> at the specified index.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>java.util.Iterator<<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a>></code></td>
<tdclass="colLast"><code><strong><ahref="../../../System/Collections/ObjectModel/Collection.html#Remove(T)">Remove</a></strong>(<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</code> </td>
<divclass="block">Initializes a new instance of the Collection<> class that is empty.</div>
</li>
</ul>
<aname="Collection(java.util.List)">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>Collection</h4>
<pre>public Collection(java.util.List<<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a>> list)</pre>
<divclass="block">Initializes a new instance of the Collection<> class as a wrapper for the specified list.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>list</code> - The list that is wrapped by the new collection.</dd></dl>
<divclass="block">Gets the number of elements actually contained in the System.Collections.ObjectModel.Collection<T>.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The number of elements actually contained in the System.Collections.ObjectModel.Collection<T>.</dd></dl>
</li>
</ul>
<aname="getItems()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getItems</h4>
<pre>protected java.util.List<<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a>> getItems()</pre>
<divclass="block">Gets a java.util.List<T> wrapper around the System.Collections.ObjectModel.Collection<T>.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>A java.util.List<T> wrapper around the System.Collections.ObjectModel.Collection<T>.</dd></dl>
</li>
</ul>
<aname="get(int)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>get</h4>
<pre>public <ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> get(int index)</pre>
<divclass="block">Gets the element at the specified index.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>index</code> - The zero-based index of the element to get.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The element at the specified index.</dd></dl>
</li>
</ul>
<aname="set(int,java.lang.Object)">
<!---->
</a><aname="set(int, T)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>set</h4>
<pre>public void set(int index,
<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</pre>
<divclass="block">Sets the element at the specified index.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>index</code> - The zero-based index of the element to set.</dd><dd><code>item</code> - The new value for the element at the specified index. The value can be null for reference types.</dd></dl>
</li>
</ul>
<aname="Add(java.lang.Object)">
<!---->
</a><aname="Add(T)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Add</h4>
<pre>public void Add(<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</pre>
<divclass="block">Adds an object to the end of the Collection<>.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>item</code> - The object to be added to the end of the Collection<>. The value can be null for reference types.</dd></dl>
</li>
</ul>
<aname="iterator()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>iterator</h4>
<pre>public java.util.Iterator<<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a>> iterator()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code> in interface <code>java.lang.Iterable<<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a>></code></dd>
</dl>
</li>
</ul>
<aname="Clear()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Clear</h4>
<pre>public void Clear()</pre>
<divclass="block">Removes all elements from the Collection<>.</div>
</li>
</ul>
<aname="ClearItems()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>ClearItems</h4>
<pre>protected void ClearItems()</pre>
<divclass="block">Removes all elements from the Collection<>.</div>
</li>
</ul>
<aname="IndexOf(java.lang.Object)">
<!---->
</a><aname="IndexOf(T)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>IndexOf</h4>
<pre>public int IndexOf(<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</pre>
<divclass="block">Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<>.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>item</code> - The object to locate in the List<>. The value can be null for reference types.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The zero-based index of the first occurrence of item within the entire Collection<>, if found; otherwise, -1.</dd></dl>
</li>
</ul>
<aname="Insert(int,java.lang.Object)">
<!---->
</a><aname="Insert(int, T)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Insert</h4>
<pre>public void Insert(int index,
<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</pre>
<divclass="block">Inserts an element into the Collection<> at the specified index.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>index</code> - The object to insert. The value can be null for reference types.</dd><dd><code>item</code> - The zero-based index at which item should be inserted.</dd></dl>
<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</pre>
<divclass="block">Inserts an element into the Collection<> at the specified index.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>index</code> - The object to insert. The value can be null for reference types.</dd><dd><code>item</code> - The zero-based index at which item should be inserted.</dd></dl>
</li>
</ul>
<aname="Remove(java.lang.Object)">
<!---->
</a><aname="Remove(T)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Remove</h4>
<pre>public boolean Remove(<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</pre>
<ahref="../../../System/Collections/ObjectModel/Collection.html"title="type parameter in Collection">T</a> item)</pre>
<divclass="block">Replaces the element at the specified index.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>index</code> - The zero-based index of the element to replace.</dd><dd><code>item</code> - The new value for the element at the specified index. The value can be null for reference types.</dd></dl>
<li><ahref="../../../System/Collections/ObjectModel/KeyedCollection.html"title="class in System.Collections.ObjectModel"><spanclass="strong">Next Class</span></a></li>