[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITrendline.NameIsAuto

NameIsAuto Property

NameIsAuto

Gets or sets whether the trendline's name is automatically determined.

When this property is true, the trendline uses an automatically generated name. When it is false, the name can be controlled explicitly, for example by using Name.

Declaration
bool NameIsAuto { get; set; }
Property NameIsAuto As Boolean
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.NameIsAuto = false;
bool nameIsAuto = trendline.NameIsAuto;