Interface IChildrenCollection
A collection of children (to be used in a tree like structure).
Inherited Members
System.Collections.Generic.IEnumerable<AGS.API.IObject>.GetEnumerator()
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IChildrenCollection : IEnumerable<IObject>, IEnumerable
Properties
| Improve this Doc View SourceCount
The number of children.
Declaration
int Count { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The count. |
Methods
| Improve this Doc View SourceAddChild(IObject)
Adds a child.
Declaration
void AddChild(IObject child)
Parameters
| Type | Name | Description |
|---|---|---|
| IObject | child | Child. |
HasChild(IObject)
Checks whether the specified object is a child in this collection.
Declaration
bool HasChild(IObject child)
Parameters
| Type | Name | Description |
|---|---|---|
| IObject | child | Child. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
RemoveChild(IObject)
Removes the child.
Declaration
void RemoveChild(IObject child)
Parameters
| Type | Name | Description |
|---|---|---|
| IObject | child | Child. |