[]
Gets or sets the point where the trendline crosses the value axis.
Returns the fixed intercept value when the trendline intercept has been set explicitly.
double Intercept { get; set; }
Property Intercept As Double
worksheet.Range["A1:B5"].Value = new object[,] {
{1, 2},
{2, 4},
{3, 6},
{4, 8},
{5, 10}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.XYScatter, 20, 20, 300, 200).Chart;
chart.SourceData = worksheet.Range["A1:B5"];
ITrendline trendline = chart.SeriesCollection[0].Trendlines.Add();
trendline.Intercept = 1.5;
double intercept = trendline.Intercept;