Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

LegendEntryCollection Methods

A collection that stores customized legend entries for a series in the chart.
Name Description
Add(Int32) Creates a new entry and adds it to the collection.
Clear() Removes all items from a collection.
Contains(LegendEntry) Determines whether the collection contains the specified entry.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
GetEntryByIndex(Int32) Gets an entry by its index in the collection.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
IndexOf(LegendEntry) Returns the index of the specified entry in the collection.
Remove(LegendEntry) Removes the specified legend entry from the collection.
RemoveAt(Int32) Removes the entry at the specified index of the LegendEntryCollection instance.
See Also