Collection containg TargetControl items.
Definition
Namespace:Telerik.Web.UI.InputManager
Assembly:Telerik.Web.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class TargetControlCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseTargetControlCollection
Implements:
Inherited Members
Constructors
public TargetControlCollection()
Properties
Methods
Adds an item to the collection.
public int Add(TargetInput targetControl)
The TargetInput to add to the collection.
Returns:The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection,
Determines whether the collection contains a specific value.
public bool Contains(TargetInput targetControl)
The object to locate in the collection.
Returns:true if the TargetInput is found in the collection; otherwise, false.
Finds TargetInput setting by ID of input control
public TargetInput FindTargetInputById(string id)
ID of input control
Returns:TargetInput or null
Determines the index of a specific item in the collection.
public int IndexOf(TargetInput targetControl)
The TargetInput to locate in the collection.
Returns:The index of targetControl if found in the list; otherwise,
-1.
Inserts an item to the collection at the specified index.
public void Insert(int index, TargetInput targetControl)
The zero-based index at which targetControl should
be inserted.
The TargetInput to insert into the collection.
Exceptions: ArgumentOutOfRangeExceptionindex is not a valid index in the collection.
targetControl is null reference in the collection
Removes the first occurrence of a specific TargetInput from the collection.
public void Remove(TargetInput targetControl)
The TargetInput to remove from the collection.