PowerPoint.Interfaces.ShapeData interface
An interface describing the data returned by calling shape.toJSON()
.
Properties
height | Specifies the height, in points, of the shape. Throws an |
id | Gets the unique ID of the shape. |
left | The distance, in points, from the left side of the shape to the left side of the slide. |
name | Specifies the name of this shape. |
top | The distance, in points, from the top edge of the shape to the top edge of the slide. |
type | Returns the type of this shape. See PowerPoint.ShapeType for details. |
width | Specifies the width, in points, of the shape. Throws an |
Property Details
height
Specifies the height, in points, of the shape. Throws an InvalidArgument
exception when set with a negative value.
height?: number;
Property Value
number
Remarks
id
Gets the unique ID of the shape.
id?: string;
Property Value
string
Remarks
left
The distance, in points, from the left side of the shape to the left side of the slide.
left?: number;
Property Value
number
Remarks
name
Specifies the name of this shape.
name?: string;
Property Value
string
Remarks
top
The distance, in points, from the top edge of the shape to the top edge of the slide.
top?: number;
Property Value
number
Remarks
type
Returns the type of this shape. See PowerPoint.ShapeType for details.
type?: PowerPoint.ShapeType | "Unsupported" | "Image" | "GeometricShape" | "Group" | "Line";
Property Value
PowerPoint.ShapeType | "Unsupported" | "Image" | "GeometricShape" | "Group" | "Line"
Remarks
width
Specifies the width, in points, of the shape. Throws an InvalidArgument
exception when set with a negative value.
width?: number;
Property Value
number
Remarks
Office Add-ins