Interface IContainer<T>
Represents a container that can hold other UI Elements.
Namespace: LemonUI
Assembly: LemonUI.SHVDN3.dll
Syntax
public interface IContainer<T> : IRecalculable, IProcessable
Type Parameters
Name | Description |
---|---|
T | The type of Element that this container handles. |
Methods
View SourceAdd(T)
Adds the specified item into the Container.
Declaration
void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to add. |
Clear()
Clears all of the items in the container.
Declaration
void Clear()
Contains(T)
Checks if the item is part of the container.
Declaration
bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to check. |
Returns
Type | Description |
---|---|
bool |
Remove(Func<T, bool>)
Removes all of the items that match the function.
Declaration
void Remove(Func<T, bool> func)
Parameters
Type | Name | Description |
---|---|---|
Func<T, bool> | func | The function to check items. |
Remove(T)
Removes the item from the container.
Declaration
void Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to remove. |