# 7. Collection class

## Introduction

The collection object implements a subset of the standard DOM HTMLCollection

## Attributes

<div id="bkmrk-length-long-number-o"><table class="confluenceTable"><colgroup><col></col><col></col><col></col></colgroup><tbody><tr><td class="confluenceTd">length

</td><td class="confluenceTd">Long

</td><td class="confluenceTd">Number of items in collection.

</td></tr></tbody></table>

</div>## Methods

<div id="bkmrk-item-id%3A-long-return"><div><table class="confluenceTable"><colgroup><col></col><col></col><col></col></colgroup><tbody><tr><td class="confluenceTd">item

</td><td class="confluenceTd">id: long

returns Element

</td><td class="confluenceTd">Find the element with id order number. The first element is 0.

</td></tr><tr><td class="confluenceTd">namedItem

</td><td class="confluenceTd">id: string

returns Element

</td><td class="confluenceTd">Search for an item with the given name. First search an element with matching Id attribute.

If none is found, search for an element with matching Name attribute.

</td></tr></tbody></table>

</div></div>