Edit

Share via


ExcelScript.ChartBorder interface

Represents the border formatting of a chart element.

Methods

clear()

Clear the border format of a chart element.

getColor()

HTML color code representing the color of borders in the chart.

getLineStyle()

Represents the line style of the border. See ExcelScript.ChartLineStyle for details.

getWeight()

Represents weight of the border, in points.

setColor(color)

HTML color code representing the color of borders in the chart.

setLineStyle(lineStyle)

Represents the line style of the border. See ExcelScript.ChartLineStyle for details.

setWeight(weight)

Represents weight of the border, in points.

Method Details

clear()

Clear the border format of a chart element.

TypeScript
clear(): void;

Returns

void

getColor()

HTML color code representing the color of borders in the chart.

TypeScript
getColor(): string;

Returns

string

getLineStyle()

Represents the line style of the border. See ExcelScript.ChartLineStyle for details.

TypeScript
getLineStyle(): ChartLineStyle;

Returns

getWeight()

Represents weight of the border, in points.

TypeScript
getWeight(): number;

Returns

number

setColor(color)

HTML color code representing the color of borders in the chart.

TypeScript
setColor(color: string): void;

Parameters

color

string

Returns

void

setLineStyle(lineStyle)

Represents the line style of the border. See ExcelScript.ChartLineStyle for details.

TypeScript
setLineStyle(lineStyle: ChartLineStyle): void;

Parameters

Returns

void

setWeight(weight)

Represents weight of the border, in points.

TypeScript
setWeight(weight: number): void;

Parameters

weight

number

Returns

void