ExcelScript.ShapeLineFormat interface
Represents the line formatting for the shape object. For images and geometric shapes, line formatting represents the border of the shape.
Methods
get |
Represents the line color in HTML color format, in the form #RRGGBB (e.g., "FFA500") or as a named HTML color (e.g., "orange"). |
get |
Represents the line style of the shape. Returns |
get |
Represents the line style of the shape. Returns |
get |
Represents the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear). Returns |
get |
Specifies if the line formatting of a shape element is visible. Returns |
get |
Represents the weight of the line, in points. Returns |
set |
Represents the line color in HTML color format, in the form #RRGGBB (e.g., "FFA500") or as a named HTML color (e.g., "orange"). |
set |
Represents the line style of the shape. Returns |
set |
Represents the line style of the shape. Returns |
set |
Represents the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear). Returns |
set |
Specifies if the line formatting of a shape element is visible. Returns |
set |
Represents the weight of the line, in points. Returns |
Method Details
getColor()
Represents the line color in HTML color format, in the form #RRGGBB (e.g., "FFA500") or as a named HTML color (e.g., "orange").
getColor(): string;
Returns
string
getDashStyle()
Represents the line style of the shape. Returns null
when the line is not visible or there are inconsistent dash styles. See ExcelScript.ShapeLineDashStyle
for details.
getDashStyle(): ShapeLineDashStyle;
Returns
getStyle()
Represents the line style of the shape. Returns null
when the line is not visible or there are inconsistent styles. See ExcelScript.ShapeLineStyle
for details.
getStyle(): ShapeLineStyle;
Returns
getTransparency()
Represents the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear). Returns null
when the shape has inconsistent transparencies.
getTransparency(): number;
Returns
number
getVisible()
Specifies if the line formatting of a shape element is visible. Returns null
when the shape has inconsistent visibilities.
getVisible(): boolean;
Returns
boolean
getWeight()
Represents the weight of the line, in points. Returns null
when the line is not visible or there are inconsistent line weights.
getWeight(): number;
Returns
number
setColor(color)
Represents the line color in HTML color format, in the form #RRGGBB (e.g., "FFA500") or as a named HTML color (e.g., "orange").
setColor(color: string): void;
Parameters
- color
-
string
Returns
void
setDashStyle(dashStyle)
Represents the line style of the shape. Returns null
when the line is not visible or there are inconsistent dash styles. See ExcelScript.ShapeLineDashStyle
for details.
setDashStyle(dashStyle: ShapeLineDashStyle): void;
Parameters
- dashStyle
- ExcelScript.ShapeLineDashStyle
Returns
void
setStyle(style)
Represents the line style of the shape. Returns null
when the line is not visible or there are inconsistent styles. See ExcelScript.ShapeLineStyle
for details.
setStyle(style: ShapeLineStyle): void;
Parameters
Returns
void
setTransparency(transparency)
Represents the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear). Returns null
when the shape has inconsistent transparencies.
setTransparency(transparency: number): void;
Parameters
- transparency
-
number
Returns
void
setVisible(visible)
Specifies if the line formatting of a shape element is visible. Returns null
when the shape has inconsistent visibilities.
setVisible(visible: boolean): void;
Parameters
- visible
-
boolean
Returns
void
setWeight(weight)
Represents the weight of the line, in points. Returns null
when the line is not visible or there are inconsistent line weights.
setWeight(weight: number): void;
Parameters
- weight
-
number
Returns
void
Office Scripts