Class UniformControlCollection<TOwner, TChildren>
Inheritance
Namespace: DotNetNuke.Web.UI.WebControls
Assembly: DotNetNuke.Web.dll
Syntax
public sealed class UniformControlCollection<TOwner, TChildren> : IList<TChildren> where TOwner : Control where TChildren : Control
Type Parameters
| Name | Description |
|---|---|
| TOwner | |
| TChildren |
Properties
| Improve this Doc View SourceCount
Gets the number of elements contained in the System.Collections.Generic.ICollection`1.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The number of elements contained in the System.Collections.Generic.ICollection`1. |
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection`1 is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true if the System.Collections.Generic.ICollection`1 is read-only; otherwise, false. |
Item[Int32]
Gets or sets the element at the specified index.
Declaration
public TChildren this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the element to get or set. |
Property Value
| Type | Description |
|---|---|
| TChildren | The element at the specified index. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
| System.NotSupportedException | The property is set and the System.Collections.Generic.IList`1 is read-only. |
Methods
| Improve this Doc View SourceAdd(TChildren)
Adds an item to the System.Collections.Generic.ICollection`1.
Declaration
public void Add(TChildren item)
Parameters
| Type | Name | Description |
|---|---|---|
| TChildren | item | The object to add to the System.Collections.Generic.ICollection`1. |
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | The System.Collections.Generic.ICollection`1 is read-only. |
AddAt(Int32, TChildren)
Declaration
public void AddAt(int index, TChildren childControl)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| TChildren | childControl |
Clear()
Removes all items from the System.Collections.Generic.ICollection`1.
Declaration
public void Clear()
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | The System.Collections.Generic.ICollection`1 is read-only. |
Contains(TChildren)
Determines whether the System.Collections.Generic.ICollection`1 contains a specific value.
Declaration
public bool Contains(TChildren item)
Parameters
| Type | Name | Description |
|---|---|---|
| TChildren | item | The object to locate in the System.Collections.Generic.ICollection`1. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if |
CopyTo(TChildren[], Int32)
Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(TChildren[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| TChildren[] | array | The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection`1. The System.Array must have zero-based indexing. |
| System.Int32 | arrayIndex | The zero-based index in |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentOutOfRangeException |
|
| System.ArgumentException |
|
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<TChildren> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<TChildren> | A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection. |
IndexOf(TChildren)
Determines the index of a specific item in the System.Collections.Generic.IList`1.
Declaration
public int IndexOf(TChildren item)
Parameters
| Type | Name | Description |
|---|---|---|
| TChildren | item | The object to locate in the System.Collections.Generic.IList`1. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The index of |
Insert(Int32, TChildren)
Inserts an item to the System.Collections.Generic.IList`1 at the specified index.
Declaration
public void Insert(int index, TChildren item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which |
| TChildren | item | The object to insert into the System.Collections.Generic.IList`1. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
| System.NotSupportedException | The System.Collections.Generic.IList`1 is read-only. |
Remove(TChildren)
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection`1.
Declaration
public bool Remove(TChildren item)
Parameters
| Type | Name | Description |
|---|---|---|
| TChildren | item | The object to remove from the System.Collections.Generic.ICollection`1. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if |
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | The System.Collections.Generic.ICollection`1 is read-only. |
RemoveAt(Int32)
Removes the System.Collections.Generic.IList`1 item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the item to remove. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
| System.NotSupportedException | The System.Collections.Generic.IList`1 is read-only. |