Class ChartLegendsList
A collection of ChartLegend items.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Windows.dll
Syntax
public class ChartLegendsList : ChartBaseList, IList, ICollection, IEnumerable
Constructors
ChartLegendsList()
Initializes a new instance of the ChartLegendsList class.
Declaration
public ChartLegendsList()
Properties
Item[Int32]
Gets or sets the ChartLegend at the specified index.
Declaration
public ChartLegend this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
ChartLegend | The ChartLegends Indexer. |
Item[String]
Gets ChartLegend by the name.
Declaration
public ChartLegend this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type |
---|
ChartLegend |
Methods
Add(ChartLegend)
Adds the specified ChartLegend.
Declaration
public int Add(ChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
ChartLegend | value | The ChartLegend. |
Returns
Type | Description |
---|---|
System.Int32 | The position into which the new element was inserted. |
Contains(ChartLegend)
Determines whether collection contains the specified ChartLegend.
Declaration
public bool Contains(ChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
ChartLegend | value | The ChartLegend. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IndexOf(ChartLegend)
Returns index of specified ChartLegend
Declaration
public int IndexOf(ChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
ChartLegend | value | The ChartLegend. |
Returns
Type | Description |
---|---|
System.Int32 | The index of value if found in the list; otherwise, -1. |
Insert(Int32, ChartLegend)
Inserts ChartLegend to the collection by the specified index.
Declaration
public void Insert(int index, ChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
ChartLegend | value | The ChartLegend. |
Remove(ChartLegend)
Removes the specified ChartLegend.
Declaration
public void Remove(ChartLegend value)
Parameters
Type | Name | Description |
---|---|---|
ChartLegend | value | The ChartLegend. |
Validate(Object)
Performs additional custom processes when validating a value
Declaration
protected override bool Validate(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to validate. |
Returns
Type | Description |
---|---|
System.Boolean | If is true, value is approved. |