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

A collection of RadSliderItem objects in a RadSlider control.

The RadSliderItemCollection class represents a collection of RadSliderItem objects.

  • Use the this[int] to programmatically retrieve a single RadSliderItem from the collection, using array notation.
  • Use the Count property to determine the total number of slider items in the collection.
  • Use the Add(RadSliderItem) method to add items in the collection.
  • Use the Remove(RadSliderItem) method to remove items from the collection.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadSliderItemCollection : ControlItemCollection, IList, ICollection, IEnumerable, IStateManager

Inheritance: objectStateManagedCollectionControlItemCollectionRadSliderItemCollection

Implements: ICollectionIEnumerableIListIStateManager

Inherited Members ControlItemCollection.VisibleChildren<T>()ControlItemCollection.Add(ControlItem)ControlItemCollection.Contains(ControlItem)ControlItemCollection.CopyTo(ControlItem[], int)ControlItemCollection.AddRange(IEnumerable<ControlItem>)ControlItemCollection.IndexOf(ControlItem)ControlItemCollection.Insert(int, ControlItem)ControlItemCollection.Remove(ControlItem)ControlItemCollection.RemoveAt(int)ControlItemCollection.FindChild<TControlItem>(Predicate<TControlItem>)ControlItemCollection.FindChildByText<TControlItem>(string)ControlItemCollection.FindChildByValue<TControlItem>(string)ControlItemCollection.FindChildByAttribute<TControlItem>(string, string)ControlItemCollection.FindChildByValue<TControlItem>(string, bool)ControlItemCollection.FindChildByText<TControlItem>(string, bool)ControlItemCollection.SetDirtyObject(object)ControlItemCollection.ParentControlItemCollection.VisibleItemsControlItemCollection.ListStateManagedCollection.Clear()StateManagedCollection.CopyTo(Array, int)StateManagedCollection.CreateKnownType(int)StateManagedCollection.GetEnumerator()StateManagedCollection.GetKnownTypes()StateManagedCollection.OnClearComplete()StateManagedCollection.OnValidate(object)StateManagedCollection.OnInsert(int, object)StateManagedCollection.OnRemove(int, object)StateManagedCollection.SetDirty()StateManagedCollection.Countobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the RadSliderItemCollection class.

C#
public RadSliderItemCollection(Control parent)
Parameters:parentControl

The owner of the collection.

Properties

Gets the RadSliderItem object at the specified index in the current RadSliderItemCollection.

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

The zero-based index of the RadSliderItem to retrieve.

Property Value:

The RadSliderItem at the specified index in the current RadSliderItemCollection.

Methods

Appends the specified RadSliderItem object to the end of the current RadSliderItemCollection.

C#
public virtual void Add(RadSliderItem item)
Parameters:itemRadSliderItem

The RadSliderItem to append to the end of the current RadSliderItemCollection.

C#
protected override void AddItemToParentControls(int index, ControlItem item)
Parameters:indexintitemControlItem

Overrides: ControlItemCollection.AddItemToParentControls(int, ControlItem)

Appends the specified array of RadSliderItem objects to the end of the current RadSliderItemCollection.

C#
public virtual void AddRange(IEnumerable<RadSliderItem> items)

items

IEnumerable<RadSliderItem>

The array of <xref href="Telerik.Web.UI.RadSliderItem?text=RadSliderItem" data-throw-if-not-resolved="false"></xref> to append to the end of the current

RadSliderItemCollection.

Determines whether the specified RadSliderItem object is in the current RadSliderItemCollection.

C#
public virtual bool Contains(RadSliderItem item)
Parameters:itemRadSliderItem

The RadSliderItem object to find.

Returns:

bool

true if the current collection contains the specified RadSliderItem object; otherwise, false.

Searches the items in the collection for a RadSliderItem which contains the specified attribute and attribute value.

C#
public RadSliderItem FindItemByAttribute(string attributeName, string attributeValue)
Parameters:attributeNamestring

The name of the target attribute.

attributeValuestring

The value of the target attribute

Returns:

RadSliderItem

The RadSliderItem that matches the specified arguments. Null (Nothing) is returned if no node is found.

Finds the first RadSliderItem with Text that matches the given text value.

C#
public RadSliderItem FindItemByText(string text)
Parameters:textstring

The string to search for.

Returns:

RadSliderItem

The first RadSliderItem that matches the specified text value.

Finds the first RadSliderItem with Value that matches the given value.

C#
public RadSliderItem FindItemByValue(string value)
Parameters:valuestring

The value to search for.

Returns:

RadSliderItem

The first RadSliderItem that matches the specified value.

Determines the index of the specified RadSliderItem object in the collection.

C#
public virtual int IndexOf(RadSliderItem item)
Parameters:itemRadSliderItem

The RadSliderItem to locate.

Returns:

int

The zero-based index of item within the current RadSliderItemCollection, if found; otherwise, -1.

Inserts the specified RadSliderItem object in the current RadSliderItemCollection at the specified index location.

C#
public virtual void Insert(int index, RadSliderItem item)
Parameters:indexint

The zero-based index location at which to insert the RadSliderItem.

itemRadSliderItem

The RadSliderItem to insert.

C#
protected override void OnClear()

Overrides: ControlItemCollection.OnClear()

C#
protected override void OnInsertComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: ControlItemCollection.OnInsertComplete(int, object)

C#
protected override void OnRemoveComplete(int index, object value)
Parameters:indexintvalueobject

Overrides: ControlItemCollection.OnRemoveComplete(int, object)

Removes the specified RadSliderItem object from the current RadSliderItemCollection.

C#
public virtual void Remove(int index)
Parameters:indexint

The zero-based index of the index to remove.

Removes the specified RadSliderItem object from the current RadSliderItemCollection.

C#
public virtual void Remove(RadSliderItem item)
Parameters:itemRadSliderItem

The RadSliderItem object to remove.

C#
protected override void SetOwner(ControlItem item)
Parameters:itemControlItem

Overrides: ControlItemCollection.SetOwner(ControlItem)