Class TemplatableCollectionList<T>
A class that abstracts a list of templated objects.
Namespace: Mux.Markup
Assembly: Mux.Markup.dll
Syntax
public abstract class TemplatableCollectionList<T> : object
Type Parameters
Name | Description |
---|---|
T | The type of templated objects. |
Methods
| Improve this Doc View SourceClearList()
Removes all elements.
Declaration
public virtual void ClearList()
GetList()
Gets backing list of templated objects.
Declaration
protected abstract IList<T> GetList()
Returns
Type | Description |
---|---|
IList<T> |
Remarks
The returned list must not directly be modified.
InsertListRange(Int32, IEnumerable<T>)
Inserts the elements of a collection at the specified index.
Declaration
public abstract void InsertListRange(int index, IEnumerable<T> enumerable)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The zero-based index at which the new elements should be inserted. |
IEnumerable<T> | enumerable | The collection whose elements should be inserted. |
MoveListRange(Int32, Int32, Int32)
Moves the elements of a collection.
Declaration
public virtual void MoveListRange(int from, int to, int count)
Parameters
Type | Name | Description |
---|---|---|
Int32 | from | The zero-based index at which the elements currently are. |
Int32 | to | The zero-based index at which the elements will be. |
Int32 | count | The number of elements to move. |
RemoveListRange(Int32, Int32)
Removes a range of elements.
Declaration
public abstract void RemoveListRange(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The zero-based starting index of the range of elements to remove. |
Int32 | count | The number of elements to remove. |
ReplaceListRange(Int32, Int32, IEnumerable<T>)
Replaces the elements of a collection.
Declaration
public virtual void ReplaceListRange(int index, int count, IEnumerable<T> enumerable)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The zero-based starting index of the range of elements to remove. |
Int32 | count | The number of elements to replace. |
IEnumerable<T> | enumerable | The collection whose elements should be replaced with. |