alexa
menu

WinForms

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

    Show / Hide Table of Contents

    Class Trendline

    A trend line is a graphical element used to indicate patterns or comparisons in data, such as price movements over time.

    Inheritance
    System.Object
    Trendline
    Inherited Members
    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 sealed class Trendline

    Constructors

    Trendline()

    Initializes a new instance of the Trendline class.

    Declaration
    public Trendline()

    Properties

    BackwardForecast

    Gets or sets the Backward Forecast of the trendline.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public double BackwardForecast { get; set; }
    Property Value
    Type
    System.Double

    Color

    Gets or sets the color of the trendline.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public Color Color { get; set; }
    Property Value
    Type
    System.Drawing.Color

    ForwardForecast

    Gets or sets the Forward Forecast of the trendline.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public double ForwardForecast { get; set; }
    Property Value
    Type
    System.Double

    Name

    Gets or sets the name of the trendline.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public string Name { get; set; }
    Property Value
    Type
    System.String

    Period

    Gets or sets the Period in the Moving Average Trendline

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public double Period { get; set; }
    Property Value
    Type
    System.Double

    PolynomialOrder

    Gets or sets the Polynomial Order in the Polynomial Trendline

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public double PolynomialOrder { get; set; }
    Property Value
    Type
    System.Double

    Style

    Gets or sets the trendline style.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public DashStyle Style { get; set; }
    Property Value
    Type
    System.Drawing.Drawing2D.DashStyle

    Type

    Gets or sets the type of the trendline.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public TrendlineType Type { get; set; }
    Property Value
    Type
    TrendlineType

    Visible

    Gets or sets the visibility of trendline.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public bool Visible { get; set; }
    Property Value
    Type
    System.Boolean

    Width

    Gets or sets the width of the trendline.

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public float Width { get; set; }
    Property Value
    Type
    System.Single
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved