Class ChartLegendCollection
Collection of IChartLegend instances.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
[Obsolete]
public class ChartLegendCollection : ChartBaseList, IList, ICollection, IEnumerable
Constructors
ChartLegendCollection()
Initializes a new instance of the ChartLegendCollection class.
Declaration
public ChartLegendCollection()
Properties
Item[Int32]
Gets or sets IChartLegend by the index.
Declaration
public IChartLegend this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of IChartLegend. |
Property Value
Type |
---|
IChartLegend |
Item[String]
Gets IChartLegend by the name.
Declaration
public IChartLegend this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of IChartLegend. |
Property Value
Type |
---|
IChartLegend |
Methods
Add(IChartLegend)
Adds IChartLegend to collection.
Declaration
public int Add(IChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
IChartLegend | value | Instance of IChartLegend class. |
Returns
Type | Description |
---|---|
System.Int32 | Index of item. |
Contains(IChartLegend)
Determines whether the ChartLegendCollection contains a specific item.
Declaration
public bool Contains(IChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
IChartLegend | value | Instance of IChartLegend class. |
Returns
Type | Description |
---|---|
System.Boolean | true if the IChartLegend is found in the collection; otherwise, false. |
IndexOf(IChartLegend)
Determines the index of a specific item in the collection.
Declaration
public int IndexOf(IChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
IChartLegend | value | Instance of IChartLegend class. |
Returns
Type | Description |
---|---|
System.Int32 | Index of specified IChartLegend. |
Insert(Int32, IChartLegend)
Inserts an item to the collection at the specified index.
Declaration
public void Insert(int index, IChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which IChartLegend should be inserted. |
IChartLegend | value | Instance of IChartLegend class. |
Remove(IChartLegend)
Removes the specific IChartLegend from the collection.
Declaration
public void Remove(IChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
IChartLegend | value | Instance of IChartLegend class. |
Validate(Object)
Validates the specified object.
Declaration
protected override bool Validate(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An System.Object to validation. |
Returns
Type | Description |
---|---|
System.Boolean | true if specified System.Object is IChartLegend and collection doesn't contain it; otherwise, false. |