Syncfusion.XlsIO.Base
Example 


IsAutoMarker Property (IChartSerieDataFormat)

True if the series has auto marker. otherwise False.
Syntax
'Declaration
 
Property IsAutoMarker As Boolean
'Usage
 
Dim instance As IChartSerieDataFormat
Dim value As Boolean
 
instance.IsAutoMarker = value
 
value = instance.IsAutoMarker
bool IsAutoMarker {get; set;}
Example
The following code illustrates how IsAutoMarker property can be used.
using Syncfusion.XlsIO;
using System;
            
class Program
{
    static void Main(string[] args)
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet sheet = workbook.Worksheets[0];
            
            //Add data
            sheet.Range["A1"].Text = "Jan";
            sheet.Range["B1"].Text = "Feb";
            sheet.Range["C1"].Text = "Mar";
            sheet.Range["D1"].Text = "Apr";
            sheet.Range["E1"].Text = "May";
            sheet.Range["F1"].Text = "Jun";
            sheet.Range["A2"].Value = "5";
            sheet.Range["B2"].Value = "21";
            sheet.Range["C2"].Value = "15";
            sheet.Range["D2"].Value = "12";
            sheet.Range["E2"].Value = "28";
            sheet.Range["F2"].Value = "9";
            
            //Create chart
            IChart chart = sheet.Charts.Add();
            
            //Set range
            chart.DataRange = sheet.Range["A1:F2"];
            
            //Set chart type
            chart.ChartType = ExcelChartType.Line_Markers;
            
            //Set serie data format
            IChartSerieDataFormat format = chart.Series[0].DataPoints.DefaultDataPoint.DataFormat;
            
            //Check auto marker
            Console.Write(format.IsAutoMarker);
            
            //Save and Dispose
            workbook.SaveAs("Chart.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//True
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also