• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class UniformControlCollection<TOwner, TChildren>

Inheritance
System.Object
UniformControlCollection<TOwner, TChildren>
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 Source

Count

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

index is not a valid index in the System.Collections.Generic.IList`1.

System.NotSupportedException

The property is set and the System.Collections.Generic.IList`1 is read-only.

Methods

| Improve this Doc View Source

Add(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.

| Improve this Doc View Source

AddAt(Int32, TChildren)

Declaration
public void AddAt(int index, TChildren childControl)
Parameters
Type Name Description
System.Int32 index
TChildren childControl
| Improve this Doc View Source

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.

| Improve this Doc View Source

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 item is found in the System.Collections.Generic.ICollection`1; otherwise, false.

| Improve this Doc View Source

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 array at which copying begins.

Exceptions
Type Condition
System.ArgumentNullException

array is null.

System.ArgumentOutOfRangeException

arrayIndex is less than 0.

System.ArgumentException

array is multidimensional. -or- arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source System.Collections.Generic.ICollection`1 is greater than the available space from arrayIndex to the end of the destination array. -or- Type paramref name="T" cannot be cast automatically to the type of the destination array.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 item if found in the list; otherwise, -1.

| Improve this Doc View Source

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 item should be inserted.

TChildren item

The object to insert into the System.Collections.Generic.IList`1.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

index is not a valid index in the System.Collections.Generic.IList`1.

System.NotSupportedException

The System.Collections.Generic.IList`1 is read-only.

| Improve this Doc View Source

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 item was successfully removed from the System.Collections.Generic.ICollection`1; otherwise, false. This method also returns false if item is not found in the original System.Collections.Generic.ICollection`1.

Exceptions
Type Condition
System.NotSupportedException

The System.Collections.Generic.ICollection`1 is read-only.

| Improve this Doc View Source

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

index is not a valid index in the System.Collections.Generic.IList`1.

System.NotSupportedException

The System.Collections.Generic.IList`1 is read-only.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS