Skip to main content
All docs
V26.1
  • ChartOptions Class

    Specifies general chart behavior options.

    Namespace: DevExpress.Docs.Office

    Assembly: DevExpress.Docs.Core.v26.1.dll

    NuGet Package: DevExpress.Docs.Core

    Declaration

    public sealed class ChartOptions :
        OfficeObject

    The following members return ChartOptions objects:

    Remarks

    The following code snippet uses the ChartOptions class to customize chart behavior:

    using DevExpress.Docs.Office;
    using DevExpress.Docs.Presentation;
    using System.Drawing;
    
    // Create a chart and add it to the slide.
    Chart chart = new Chart();
    slide.Shapes.Add(chart);
    
    // Set the chart outline fill color.
    chart.OutlineStyle = new OutlineStyle { Fill = new SolidFill(Color.CadetBlue) };
    
    // Enable rounded chart corners.
    chart.Options.RoundedCorners = true;
    
    // Plot only visible points.
    chart.Options.PlotVisibleOnly = true;
    

    Implements

    Inheritance

    Object
    OfficeObject
    ChartOptions
    See Also