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

A collection of ButtonToggleState objects in a RadButton control

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class ButtonToggleStateCollection : StronglyTypedStateManagedCollection<ButtonToggleState>, IList, ICollection, IEnumerable, IStateManager

Inheritance: objectStateManagedCollectionStronglyTypedStateManagedCollection<ButtonToggleState>ButtonToggleStateCollection

Implements: ICollectionIEnumerableIListIStateManager

Inherited Members StronglyTypedStateManagedCollection<ButtonToggleState>.Add(ButtonToggleState)StronglyTypedStateManagedCollection<ButtonToggleState>.Contains(ButtonToggleState)StronglyTypedStateManagedCollection<ButtonToggleState>.CopyTo(ButtonToggleState[], int)StronglyTypedStateManagedCollection<ButtonToggleState>.AddRange(IEnumerable<ButtonToggleState>)StronglyTypedStateManagedCollection<ButtonToggleState>.IndexOf(ButtonToggleState)StronglyTypedStateManagedCollection<ButtonToggleState>.Insert(int, ButtonToggleState)StronglyTypedStateManagedCollection<ButtonToggleState>.RemoveAt(int)StronglyTypedStateManagedCollection<ButtonToggleState>.SetDirtyObject(object)StronglyTypedStateManagedCollection<ButtonToggleState>.this[int]StronglyTypedStateManagedCollection<ButtonToggleState>.ListStateManagedCollection.Clear()StateManagedCollection.CopyTo(Array, int)StateManagedCollection.CreateKnownType(int)StateManagedCollection.GetEnumerator()StateManagedCollection.GetKnownTypes()StateManagedCollection.OnClear()StateManagedCollection.OnClearComplete()StateManagedCollection.OnValidate(object)StateManagedCollection.OnInsert(int, object)StateManagedCollection.OnInsertComplete(int, object)StateManagedCollection.OnRemove(int, object)StateManagedCollection.OnRemoveComplete(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

Creates an instance of ButtonToggleStateCollection class.

C#
public ButtonToggleStateCollection(RadToggleButton container)
Parameters:containerRadToggleButton

The RadButton control to which the collection belongs.

Methods

Creates a new ButtonToggleState and adds it to the current ToggleState collection.

C#
public virtual void Add(string text)
Parameters:textstring

The Text of the ToggleState.

Removes an item from the ToggleState collection.

C#
public override void Remove(ButtonToggleState item)
Parameters:itemButtonToggleState

The ToggleState to remove.

Overrides: StronglyTypedStateManagedCollection<ButtonToggleState>.Remove(ButtonToggleState)