[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartFormat

IChartFormat Interface

Provides access to the Office Art formatting for chart elements.

Use this interface to work with the fill, line, and 3-D formatting exposed by a chart element's format object. An instance is typically obtained from another chart API such as a chart area, series, axis, legend, or data label.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IChartFormat
Public Interface IChartFormat
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 15},
    {"Mar", 12}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
IChartFormat chartFormat = chart.ChartArea.Format;
chartFormat.Fill.Color.RGB = Color.Blue;

Properties

Name Description
Fill

Gets the IFillFormat object for the chart element.

Use the returned IFillFormat object to access and modify the fill formatting properties of the parent chart element.

Line

Gets the ILineFormat object for the chart element.

Use the returned ILineFormat object to access and modify the line formatting properties of the specified chart element.

ThreeD

Gets the IThreeDFormat object for the chart element.

Use the returned IThreeDFormat object to access and modify the 3-D formatting properties of the specified chart element, such as rotation, perspective, and visibility.