Edit

Share via


PowerPoint.PictureAddOptions interface

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.

Represents the available options when adding a picture (represented by a PowerPoint.Shape object).

Remarks

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

Properties

height

Specifies the height, in points, of the picture. When not provided, the default value is 72 points (1 inch). Throws an InvalidArgument exception when set with a negative value.

left

Specifies the distance, in points, from the left side of the picture to the left side of the slide. When not provided, the default value is 0.

top

Specifies the distance, in points, from the top edge of the picture to the top edge of the slide. When not provided, the default value is 0.

width

Specifies the width, in points, of the picture. When not provided, the default value is 72 points (1 inch). Throws an InvalidArgument exception when set with a negative value.

Property Details

height

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 height, in points, of the picture. When not provided, the default value is 72 points (1 inch). Throws an InvalidArgument exception when set with a negative value.

height?: number;

Property Value

number

Remarks

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

left

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 distance, in points, from the left side of the picture to the left side of the slide. When not provided, the default value is 0.

left?: number;

Property Value

number

Remarks

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

top

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 distance, in points, from the top edge of the picture to the top edge of the slide. When not provided, the default value is 0.

top?: number;

Property Value

number

Remarks

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

width

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 width, in points, of the picture. When not provided, the default value is 72 points (1 inch). Throws an InvalidArgument exception when set with a negative value.

width?: number;

Property Value

number

Remarks

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]