Search Results for

    Show / Hide Table of Contents

    ExcelFile.AddChart Method

    This method will add a chart to the active sheet. You can then add series and customize the returned ExcelChart object.

    Important: This method only works in xlsx files.

    Syntax

    Namespace: FlexCel.Core

    public abstract ExcelChart AddChart(TShapeProperties objProps, TChartType chartType, ChartStyle aChartStyle, Boolean roundedCorners)

    Parameters

    <-> Parameter Type Description
    objProps TShapeProperties Place where the chart will be placed and characteristics like if it is printable or not.
    chartType TChartType Kind of chart created. Note that you can have more than one type of chart in the same chart, so this just sets the base chart type. You can add other chart types over it.
    aChartStyle ChartStyle Theme of the chart.

    This is a number between 1 and 48 which defines many standard properties for the chart, like the default line width for the series or the legend.
    The default style is 2.
    roundedCorners Boolean If true, the chart will have rounded corners.

    See also

    • ExcelFile
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com