Format

IChartDataPointLevel.Format 属性

表示数据点级别的格式属性。读/写 IFormat

public IFormat Format { get; }

示例

using (Presentation pres = new Presentation())
{
    IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.Treemap, 50, 50, 500, 400);
    IChartSeries series = chart.ChartData.Series[0];

    IChartDataPointLevel dataPointLevel = series.DataPoints[7].DataPointLevels[2];
    dataPointLevel.Format.Fill.FillType = FillType.Solid;
    dataPointLevel.Format.Fill.SolidFillColor.Color = Color.Red;
}

另见