New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Collection containg TargetControl items.

Definition

Constructors

C#
public TargetControlCollection()

Properties

C#
public TargetInput this[int index] { get; set; }
Parameters:indexint

Methods

Adds an item to the collection.

C#
public int Add(TargetInput targetControl)
Parameters:targetControlTargetInput

The TargetInput to add to the collection.

Returns:

int

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.

C#
public bool Contains(TargetInput targetControl)
Parameters:targetControlTargetInput

The object to locate in the collection.

Returns:

bool

true if the TargetInput is found in the collection; otherwise, false.

Finds TargetInput setting by ID of input control

C#
public TargetInput FindTargetInputById(string id)
Parameters:idstring

ID of input control

Returns:

TargetInput

TargetInput or null

Determines the index of a specific item in the collection.

C#
public int IndexOf(TargetInput targetControl)
Parameters:targetControlTargetInput

The TargetInput to locate in the collection.

Returns:

int

The index of targetControl if found in the list; otherwise, -1.

Inserts an item to the collection at the specified index.

C#
public void Insert(int index, TargetInput targetControl)
Parameters:indexint

The zero-based index at which targetControl should be inserted.

targetControlTargetInput

The TargetInput to insert into the collection.

Exceptions: ArgumentOutOfRangeException

index is not a valid index in the collection.

NullReferenceException

targetControl is null reference in the collection

Removes the first occurrence of a specific TargetInput from the collection.

C#
public void Remove(TargetInput targetControl)
Parameters:targetControlTargetInput

The TargetInput to remove from the collection.