Otter SDK Reference
Version:

SimpleControlCollection Class

Represents a collection of simple controls.

Inheritance Hierarchy

  • object
    • Inedo.Web.Controls.SimpleControlCollection

Syntax

public class SimpleControlCollection : IList<ISimpleControl>, ICollection<ISimpleControl>, IEnumerable<ISimpleControl>, System.Collections.IEnumerable, IReadOnlyList<ISimpleControl>, IReadOnlyCollection<ISimpleControl>

Constructors

Name Description
SimpleControlCollection

Initializes a new instance of the SimpleControlCollection class.

Properties

Name Description
Count

Gets the number of controls.

Item

Methods

Name Description
Add(ISimpleControl item)

Adds a control to the collection.

Add(System.Collections.Generic.IEnumerable<ISimpleControl> items)

Adds controls to the collection.

Add(ISimpleControl[] items)

Adds controls to the collection.

Add(object item)

Adds an object to the collection as a control.

Add(object[] items)

Adds objects to the collection as controls.

AddLiteral(string literal, bool encoded)

Adds an HTML literal control.

Clear

Removes all controls from the collection.

Contains(ISimpleControl item)

Returns a value indicating whether a control is in the collection.

GetEnumerator

Gets an enumerator for the control collection.

IndexOf(ISimpleControl item)

Returns the index of the specified control in the collection.

Insert(int index, ISimpleControl item)

Inserts a control into the collection.

Remove(ISimpleControl item)

Removes a control from the collection.

RemoveAt(int index)

Removes a control from the collection.