Search Results for

    Show / Hide Table of Contents

    Class ChartStyle

    Represents the visual style of the chart, including themes, colors, and other aesthetics.

    Inheritance
    System.Object
    ChartStyle
    Namespace: IronWord.Models
    Assembly: IronWord.dll
    Syntax
    public class ChartStyle : Object

    A chart's visual appearance, its themes, colors, and other aesthetics, is what ChartStyle controls in a Word document. A developer attaches it to a Chart to shape how the chart looks once rendered, separate from the data it plots and the kind of chart it is.

    Create one with new ChartStyle() and assign it to the Style property of a Chart. The chart applies the styling when it renders, while its DataSource continues to supply the values and its Type decides the chart form. Keeping appearance on its own object means a single look can be defined once and reused across several charts, or adjusted without touching the data or axis configuration. Pair it with the chart's AxisConfig when both the axes and the overall theme need tuning together.

    The document element tutorial walks through assembling visual elements, and the add style text how-to demonstrates applying styling to document content.

    Constructors

    ChartStyle()

    Declaration
    public ChartStyle()
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet