alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    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
    System.Object
    System.Collections.CollectionBase
    TrendlineCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.OnClear()
    System.Collections.CollectionBase.OnClearComplete()
    System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
    System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)
    System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
    System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
    System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved