[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITrendline.Name

Name Property

Name

Gets or sets the name of the trendline.

Returns the custom name assigned to the trendline. If the trendline name is determined automatically, this property returns the current automatically generated name.

Declaration
string Name { get; set; }
Property Name As String
Examples
worksheet.Range["A1:A4"].Value = new object[] { 10, 20, 30, 40 };
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 360, 220);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:A4"], RowCol.Columns);
ITrendline trendline = shape.Chart.SeriesCollection[0].Trendlines.Add();
trendline.Name = "Sales Trend";
string name = trendline.Name;