New to Telerik UI for WinFormsStart a free 30-day trial

Represents a collection of TrackBarRange

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TrackBarRangeCollection : IList, ICollection, IEnumerable, INotifyPropertyChanged

Inheritance: objectTrackBarRangeCollection

Implements: ICollectionIEnumerableIListINotifyPropertyChanged

Constructors

C#
public TrackBarRangeCollection(RadTrackBarElement owner)
Parameters:ownerRadTrackBarElement

Properties

Gets the number of elements contained in the Collection

C#
public int Count { get; }

Implements: ICollection.Count

Gets a value indicating whether the Collection is read-only.

C#
public bool IsReadOnly { get; }

Implements: IList.IsReadOnly

Gets or Sets a maximum value for the trackbar position

C#
[Browsable(true)]
public float Maximum { get; set; }

Gets or Sets a minimum value for the trackbar position

C#
[Browsable(true)]
public float Minimum { get; set; }

Gets or Sets the Mode of the TrackBar

C#
[Browsable(true)]
public TrackBarRangeMode Mode { get; set; }

Gets the RadTrackBarElement which owns this collection

C#
public RadTrackBarElement Owner { get; }

Gets or sets the Range at the specified index.

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

index

Property Value:

TrackBarRange

Gets or sets the Range at the specified name.

C#
public TrackBarRange this[string text] { get; }
Parameters:textstring

text

Property Value:

TrackBarRange

Methods

Add range to the System.Collections.Generic.ICollection

C#
public void Add(TrackBarRange item)
Parameters:itemTrackBarRange

item

Check thumb move.

C#
public bool CheckThumbMove(float value, bool isStart, TrackBarRange range)
Parameters:valuefloat

value

isStartbool

isStart

rangeTrackBarRange

range

Returns:

bool

bool

Removes all items except the first from the System.Collections.Generic.ICollection

C#
public void Clear()

Implements: IList.Clear()

Determines whether the System.Collections.Generic.ICollection contains a specific value.

C#
public bool Contains(TrackBarRange item)
Parameters:itemTrackBarRangeReturns:

bool

bool

Copies the elements of the System.Collections.Generic.ICollection to an System.Array, starting at a particular System.Array index.

C#
public void CopyTo(TrackBarRange[] array, int arrayIndex)
Parameters:arrayTrackBarRange[]

array

arrayIndexint

arrayIndex

Returns an enumerator that iterates through the collection.

C#
public IEnumerator<TrackBarRange> GetEnumerator()
Returns:

IEnumerator<TrackBarRange>

IEnumerator

Determines the index of a specific item in the Collection

C#
public int IndexOf(TrackBarRange item)
Parameters:itemTrackBarRange

item

Returns:

int

int

Inserts an item to the Collections at the specified index.

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

index

itemTrackBarRange

item

C#
public virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs
C#
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters:propertyNamestring

Perform Thumb Move in SingleThumb Mode.

C#
public bool PerformThumbMove(float value)
Parameters:valuefloat

Value

Returns:

bool

bool

Removes the first occurrence of a specific object from the Collection.

C#
public bool Remove(TrackBarRange item)
Parameters:itemTrackBarRange

item

Returns:

bool

bool

Removes the TrackBarRange item at the specified index.

C#
public void RemoveAt(int index)
Parameters:indexint

index

Implements: IList.RemoveAt(int)

Resumes property and collection notifications.

C#
public void ResumeNotifications()

Suspends all property and collection notifications.

C#
public void SuspendNotifications()

Events

Occurs when an item is added, removed, changed, moved, or the entire list is refreshed.

C#
public event NotifyCollectionChangedEventHandler CollectionChanged

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged