Class TrendlineCollection
Represents a collection of Trendline objects. A trend line is a graphical element used to indicate patterns or comparisons in data, such as price movements over time.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class TrendlineCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
TrendlineCollection()
Initializes a new instance of the TrendlineCollection class.
Declaration
public TrendlineCollection()
Properties
Item[Int32]
Returns the trend line stored in the specified index.
Declaration
public Trendline this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type |
|---|
| Trendline |
Methods
Add(Trendline)
Adds the specified trend line to this collection.
Declaration
public void Add(Trendline trendline)
Parameters
| Type | Name | Description |
|---|---|---|
| Trendline | trendline | An instance of the trend line that is to be added to the collection. |
IndexOf(Trendline)
Looks up the collection and returns the index value of the specified trend line.
Declaration
public int IndexOf(Trendline trendline)
Parameters
| Type | Name | Description |
|---|---|---|
| Trendline | trendline | An instance of the trend line that is to be looked up in the collection. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The index value if the look up was successful; -1 otherwise. |
Insert(Int32, Trendline)
Inserts the specified trend line at the specified index value.
Declaration
public void Insert(int index, Trendline trendline)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Index value where the instance of the specified trend line is to be inserted. |
| Trendline | trendline | An instance of the trendline that is to be inserted at the specified index value. |
Remove(Trendline)
Removes the specified trend line from this collection.
Declaration
public void Remove(Trendline trendline)
Parameters
| Type | Name | Description |
|---|---|---|
| Trendline | trendline | trend line that is to be removed. |
Events
Changed
Event that is raised when this collection is changed.
Declaration
public event EventHandler Changed
Event Type
| Type |
|---|
| System.EventHandler |