Class
TrackBarRangeCollection

Represents a collection of TrackBarRange

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class TrackBarRangeCollection : IList, ICollection, IEnumerable, INotifyPropertyChanged

Inheritance: objectTrackBarRangeCollection

Implements: ICollectionIEnumerableIListINotifyPropertyChanged

Constructors

TrackBarRangeCollection(RadTrackBarElement)

Declaration

cs-api-definition
public TrackBarRangeCollection(RadTrackBarElement owner)

Parameters

owner

RadTrackBarElement

Properties

Count

Gets the number of elements contained in the Collection

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

Implements ICollection.Count

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

Implements IList.IsReadOnly

Maximum

Gets or Sets a maximum value for the trackbar position

Declaration

cs-api-definition
[Browsable(true)]
public float Maximum { get; set; }

Property Value

float

Minimum

Gets or Sets a minimum value for the trackbar position

Declaration

cs-api-definition
[Browsable(true)]
public float Minimum { get; set; }

Property Value

float

Mode

Gets or Sets the Mode of the TrackBar

Declaration

cs-api-definition
[Browsable(true)]
public TrackBarRangeMode Mode { get; set; }

Property Value

TrackBarRangeMode

Owner

Gets the RadTrackBarElement which owns this collection

Declaration

cs-api-definition
public RadTrackBarElement Owner { get; }

Property Value

RadTrackBarElement

this[int]

Gets or sets the Range at the specified index.

Declaration

cs-api-definition
public TrackBarRange this[int index] { get; set; }

Parameters

index

int

index

Property Value

TrackBarRange

TrackBarRange

this[string]

Gets or sets the Range at the specified name.

Declaration

cs-api-definition
public TrackBarRange this[string text] { get; }

Parameters

text

string

text

Property Value

TrackBarRange

TrackBarRange

Methods

Add(TrackBarRange)

Add range to the System.Collections.Generic.ICollection

Declaration

cs-api-definition
public void Add(TrackBarRange item)

Parameters

item

TrackBarRange

item

CheckThumbMove(float, bool, TrackBarRange)

Check thumb move.

Declaration

cs-api-definition
public bool CheckThumbMove(float value, bool isStart, TrackBarRange range)

Parameters

value

float

value

isStart

bool

isStart

range

TrackBarRange

range

Returns

bool

bool

Clear()

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

Declaration

cs-api-definition
public void Clear()

Implements IList.Clear()

Contains(TrackBarRange)

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

Declaration

cs-api-definition
public bool Contains(TrackBarRange item)

Parameters

item

TrackBarRange

Returns

bool

bool

CopyTo(TrackBarRange[], int)

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

Declaration

cs-api-definition
public void CopyTo(TrackBarRange[] array, int arrayIndex)

Parameters

array

TrackBarRange[]

array

arrayIndex

int

arrayIndex

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

cs-api-definition
public IEnumerator<TrackBarRange> GetEnumerator()

Returns

IEnumerator<TrackBarRange>

IEnumerator

IndexOf(TrackBarRange)

Determines the index of a specific item in the Collection

Declaration

cs-api-definition
public int IndexOf(TrackBarRange item)

Parameters

item

TrackBarRange

item

Returns

int

int

Insert(int, TrackBarRange)

Inserts an item to the Collections at the specified index.

Declaration

cs-api-definition
public void Insert(int index, TrackBarRange item)

Parameters

index

int

index

item

TrackBarRange

item

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Declaration

cs-api-definition
public virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

OnNotifyPropertyChanged(string)

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanged(string propertyName)

Parameters

propertyName

string

PerformThumbMove(float)

Perform Thumb Move in SingleThumb Mode.

Declaration

cs-api-definition
public bool PerformThumbMove(float value)

Parameters

value

float

Value

Returns

bool

bool

Remove(TrackBarRange)

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

Declaration

cs-api-definition
public bool Remove(TrackBarRange item)

Parameters

item

TrackBarRange

item

Returns

bool

bool

RemoveAt(int)

Removes the TrackBarRange item at the specified index.

Declaration

cs-api-definition
public void RemoveAt(int index)

Parameters

index

int

index

Implements IList.RemoveAt(int)

ResumeNotifications()

Resumes property and collection notifications.

Declaration

cs-api-definition
public void ResumeNotifications()

SuspendNotifications()

Suspends all property and collection notifications.

Declaration

cs-api-definition
public void SuspendNotifications()

Events

CollectionChanged

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

Declaration

cs-api-definition
public event NotifyCollectionChangedEventHandler CollectionChanged

Event Value

NotifyCollectionChangedEventHandler

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged