Edit

Share via


PowerPoint.Interfaces.ShapeUpdateData interface

An interface for updating data on the Shape object, for use in shape.set({ ... }).

Properties

height

Specifies the height, in points, of the shape. Throws an InvalidArgument exception when set with a negative value.

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.

rotation

Specifies the rotation, in degrees, of the shape around the z-axis. A positive value indicates clockwise rotation, and a negative value indicates counterclockwise rotation.

top

The distance, in points, from the top edge of the shape to the top edge of the slide.

visible

Specifies if the shape is visible.

width

Specifies the width, in points, of the shape. Throws an InvalidArgument exception when set with a negative value.

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

[ API set: PowerPointApi 1.4 ]

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

[ API set: PowerPointApi 1.4 ]

name

Specifies the name of this shape.

name?: string;

Property Value

string

Remarks

[ API set: PowerPointApi 1.4 ]

rotation

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies the rotation, in degrees, of the shape around the z-axis. A positive value indicates clockwise rotation, and a negative value indicates counterclockwise rotation.

rotation?: number;

Property Value

number

Remarks

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

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

[ API set: PowerPointApi 1.4 ]

visible

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies if the shape is visible.

visible?: boolean;

Property Value

boolean

Remarks

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

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

[ API set: PowerPointApi 1.4 ]