New to Telerik UI for WinForms? Start a free 30-day trial

Stores the still indicators displayed by a chart controller and supports lookup and removal by indicator name.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

C#
public class ChartStillIndicatorCollection : IEnumerable

Inheritance: objectChartStillIndicatorCollection

Implements: IEnumerable

Constructors

Initializes a new instance of the ChartStillIndicatorCollection class.

C#
public ChartStillIndicatorCollection()

Properties

Gets the number of elements contained in the ICollection<T>.

C#
public int Count { get; }
Property Value:

The number of elements contained in the ICollection<T>.

Gets a value indicating whether the ICollection<T> is read-only.

C#
public bool IsReadOnly { get; }
Property Value:

true if the ICollection<T> is read-only; otherwise, false.

Gets or sets the ChartStillIndicator at the specified index.

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

Gets or replaces the first indicator whose Name matches the specified name. The getter returns null when no indicator matches; the setter does nothing in that case.

C#
public ChartStillIndicator this[string name] { get; set; }
Parameters:namestring

The name used to find the indicator.

Property Value:

The matching indicator, or null if no indicator has that name.

Methods

Adds the specified item.

C#
public void Add(ChartStillIndicator item)
Parameters:itemChartStillIndicator

The item.

Removes all items from the ICollection<T>.

C#
public void Clear()
Exceptions: NotSupportedException

The ICollection<T> is read-only.

Determines whether the collection contains the specified item.

C#
public bool Contains(ChartStillIndicator item)
Parameters:itemChartStillIndicator

The item.

Returns:

bool

Determines whether the collection contains the specified name.

C#
public bool Contains(string name)
Parameters:namestring

The name.

Returns:

bool

Copies the entire collection starting at the given index.

C#
public void CopyTo(ChartStillIndicator[] array, int arrayIndex)
Parameters:arrayChartStillIndicator[]

The array.

arrayIndexint

Index of the array.

Returns an enumerator that iterates through the collection.

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

IEnumerator<ChartStillIndicator>

A IEnumerator<T> that can be used to iterate through the collection.

Returns the index of the passed item.

C#
public int IndexOf(ChartStillIndicator item)
Parameters:itemChartStillIndicator

The item.

Returns:

int

Returns the index of the passed name.

C#
public int IndexOf(string name)
Parameters:namestring

The name.

Returns:

int

Inserts the item at the specified index.

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

The index.

itemChartStillIndicator

The item.

Removes the specified item.

C#
public bool Remove(ChartStillIndicator item)
Parameters:itemChartStillIndicator

The item.

Returns:

bool

Removes the specified name.

C#
public bool Remove(string name)
Parameters:namestring

The name.

Returns:

bool

Removes the IList<T> item at the specified index.

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

The zero-based index of the item to remove.

Exceptions: ArgumentOutOfRangeException

index is not a valid index in the IList<T>.

NotSupportedException

The IList<T> is read-only.