Acad.DataItemCollection Function
File
Autodesk.AutoCAD.js
Syntax
JavaScript
function Acad.DataItemCollection(colName);
Group
Parameters
Parameter | Description |
---|---|
colName | represents the collection name. |
Description
This is the class that represents a collection of DataItem objects. It is returned by DataItemCollectionManager.getKnownCollection. You can observe DataItemCollection changes through addEventListener and removeEventListener functions.
The following is a list of supported event names:
eventname = {
collectionChanged: "collectionChanged",
itemsChanged: "itemsChanged",
reset: "reset"
};
Properties
Name | Type | Description | Condition |
---|---|---|---|
colName | string | used to get the Collection name. | Read-only |
dataItems | array | is used to get the DataItem name. |
Read-only |
eventname | object | is the name of an event. | Read-only |