Difference between revisions of "Collection"

From Lianjapedia
Jump to: navigation, search
Line 26: Line 26:
 
!Args
 
!Args
 
!width="50%"|Description
 
!width="50%"|Description
 
+
|-
 +
|valign="top"|Add
 +
|valign="top"|name as Character, value as Expr
 +
|valign="top"|Adds the specified item to the collection
 +
|-
 +
|valign="top"|Remove
 +
|valign="top"|name as Character
 +
|valign="top"|Removes the specified item from the collection
 +
|-
 +
|valign="top"|Item
 +
|valign="top"|name as Character | index as Numeric
 +
|valign="top"|Returns the specified item
 +
|-
 +
|valign="top"|Clear
 +
|valign="top"|None
 +
|valign="top"|Remove all items from the collection
 +
|-
 
|}
 
|}
  

Revision as of 07:55, 21 December 2012

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the Common properties plus the following:

Property Access (R/RW) Value Description
Count R Numeric Returns number of items

Methods

This class supports the Common methods plus the following:

Method Args Description
Add name as Character, value as Expr Adds the specified item to the collection
Remove name as Character Removes the specified item from the collection
Item name as Character | index as Numeric Returns the specified item
Clear None Remove all items from the collection

Events

This class supports the Common events plus the following:

Event Args Description