Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ExcelScript.ShapeLineFormat interface
- Package:
- ExcelScript
Represents the line formatting for the shape object. For images and geometric shapes, line formatting represents the border of the shape.
Methods
| 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"). |
| getDashStyle() | Represents the line style of the shape. Returns |
| getStyle() | Represents the line style of the shape. Returns |
| getTransparency() | Represents the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear). Returns |
| getVisible() | Specifies if the line formatting of a shape element is visible. Returns |
| getWeight() | Represents the weight of the line, in points. Returns |
| 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"). |
| setDashStyle(dashStyle) | Represents the line style of the shape. Returns |
| setStyle(style) | Represents the line style of the shape. Returns |
| setTransparency(transparency) | Represents the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear). Returns |
| setVisible(visible) | Specifies if the line formatting of a shape element is visible. Returns |
| setWeight(weight) | 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
Feedback
Was this page helpful?
