[]
Sheets.GanttSheet.Collection
| Name |
|---|
T |
• new Collection<T>()
Creates an instance of Collection.
classdesc A collection of objects.
| Name |
|---|
T |
▸ add(item): void
Adds the item into list.
| Name | Type | Description |
|---|---|---|
item |
T |
The item to add. |
void
▸ all(): T[]
Get all item form collection.
T[]
A collection item list.
▸ clear(): void
Removes all items from list.
void
▸ getIndexByItem(item): number
Get the item index from collection list.
| Name | Type | Description |
|---|---|---|
item |
T |
The item of the collection. |
number
The index of item in the collection list.
▸ getItemAt(index): T
Get the item with the corresponding index
| Name | Type | Description |
|---|---|---|
index |
number |
The collection list index. |
T
The rule with the specified name.
▸ getRule(name): null | T
Gets the item with the specified name.
| Name | Type | Description |
|---|---|---|
name |
string |
A string value indicates the name of the rule. |
null | T
The rule with the specified name.
▸ insert(item): void
Insert the item into list.
| Name | Type | Description |
|---|---|---|
item |
T |
The item to insert. |
void
▸ length(): number
Get the collection list length.
number
The collection list length.
▸ remove(item): void
Removes the item from list.
| Name | Type | Description |
|---|---|---|
item |
T |
The item to remove. |
void
▸ removeAt(index): void
Delete the corresponding item from an index
| Name | Type | Description |
|---|---|---|
index |
number |
The collection list index. |
void
▸ setItemAt(index, item): void
Set the item to index.
| Name | Type | Description |
|---|---|---|
index |
number |
The index to insert. |
item |
T |
The item. |
void