Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IChartSerie Interface : EnteredDirectlyCategoryLabels Property

EnteredDirectlyCategoryLabels Property (IChartSerie)

Gets or sets the directly entered category values.
Syntax
'Declaration
 
Property EnteredDirectlyCategoryLabels As Object()
'Usage
 
Dim instance As IChartSerie
Dim value() As Object
 
instance.EnteredDirectlyCategoryLabels = value
 
value = instance.EnteredDirectlyCategoryLabels
object[] EnteredDirectlyCategoryLabels {get; set;}
Example
using Syncfusion.XlsIO;
            
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];
            
            //Create chart
            IChart chart = sheet.Charts.Add();
            
            //Set serie
            IChartSerie serie = chart.Series.Add(ExcelChartType.Pie);
            
            //Set direct values
            serie.EnteredDirectlyValues = new object[] { 2000, 1000, 1000 };
            
            //Set direct category label
            serie.EnteredDirectlyCategoryLabels = new object[] { "Total Income", "Expenses", "Profit" };
            
            //Save and Dispose
            workbook.SaveAs("Chart.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also