ExcelScript.ChartSeriesFormat interface

封装图表系列的格式属性

注解

示例

/**
 * This sample gets the series format to customize fill and line properties.
 * This assumes the active worksheet has a chart.
 */
function main(workbook: ExcelScript.Workbook) {
  // Get the first chart on the active worksheet.
  const sheet = workbook.getActiveWorksheet();
  const chart = sheet.getCharts()[0];
  
  // Get series format and customize the fill color.
  const series = chart.getSeries()[0];
  const seriesFormat = series.getFormat();
  seriesFormat.getFill().setSolidColor("#B0C4DE");
}

方法

getFill()

表示图表系列的填充格式,包括背景格式信息。

getLine()

表示线条格式。

方法详细信息

getFill()

表示图表系列的填充格式,包括背景格式信息。

getFill(): ChartFill;

返回

getLine()

表示线条格式。

getLine(): ChartLineFormat;

返回