PowerPoint.Interfaces.ShapeLoadOptions interface
Represents a single shape in the slide.
Remarks
Properties
| $all | Specifying |
| adjustments | Returns an |
| creation |
Gets the creation ID of the shape. Returns |
| fill | Returns the fill formatting of this shape. |
| group | Returns the |
| 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. |
| level | Returns the level of the specified shape.
|
| line |
Returns the line formatting of this shape. |
| name | Specifies the name of this shape. |
| parent |
Returns the parent group of this shape. If the shape isn't part of a group, then this method returns the |
| placeholder |
Returns the properties that apply specifically to this placeholder. If the shape type isn't |
| 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. |
| text |
Returns the PowerPoint.TextFrame object of this |
| 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. |
| visible | Specifies if the shape is visible. |
| width | Specifies the width, in points, of the shape. Throws an |
| z |
Returns the z-order position of the shape, with 0 representing the bottom of the order stack. Every shape on a slide has a unique z-order, but each slide also has a unique z-order stack, so two shapes on separate slides could have the same z-order number. |
Property Details
$all
Specifying $all for the load options loads all the scalar properties (such as Range.address) but not the navigational properties (such as Range.format.fill.color).
$all?: boolean;
Property Value
boolean
adjustments
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.
Returns an Adjustments object that contains adjustment values for all the adjustments in this shape.
adjustments?: PowerPoint.Interfaces.AdjustmentsLoadOptions;
Property Value
Remarks
creationId
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.
Gets the creation ID of the shape. Returns null if the shape has no creation ID.
creationId?: boolean;
Property Value
boolean
Remarks
fill
Returns the fill formatting of this shape.
fill?: PowerPoint.Interfaces.ShapeFillLoadOptions;
Property Value
Remarks
group
Returns the ShapeGroup associated with the shape. If the shape type isn't group, then this method returns the GeneralException error.
group?: PowerPoint.Interfaces.ShapeGroupLoadOptions;
Property Value
Remarks
height
Specifies the height, in points, of the shape. Throws an InvalidArgument exception when set with a negative value.
height?: boolean;
Property Value
boolean
Remarks
id
Gets the unique ID of the shape.
id?: boolean;
Property Value
boolean
Remarks
left
The distance, in points, from the left side of the shape to the left side of the slide.
left?: boolean;
Property Value
boolean
Remarks
level
Returns the level of the specified shape.
A level of 0 means the shape isn't part of a group.
A level of 1 means the shape is part of a top-level group.
A level greater than 1 indicates the shape is a nested group.
level?: boolean;
Property Value
boolean
Remarks
lineFormat
Returns the line formatting of this shape.
lineFormat?: PowerPoint.Interfaces.ShapeLineFormatLoadOptions;
Property Value
Remarks
name
Specifies the name of this shape.
name?: boolean;
Property Value
boolean
Remarks
parentGroup
Returns the parent group of this shape. If the shape isn't part of a group, then this method returns the GeneralException error.
parentGroup?: PowerPoint.Interfaces.ShapeLoadOptions;
Property Value
Remarks
placeholderFormat
Returns the properties that apply specifically to this placeholder. If the shape type isn't placeholder, then this method returns the GeneralException error.
placeholderFormat?: PowerPoint.Interfaces.PlaceholderFormatLoadOptions;
Property Value
Remarks
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?: boolean;
Property Value
boolean
Remarks
textFrame
Returns the PowerPoint.TextFrame object of this Shape. Throws an InvalidArgument exception if the shape doesn't support a TextFrame.
textFrame?: PowerPoint.Interfaces.TextFrameLoadOptions;
Property Value
Remarks
top
The distance, in points, from the top edge of the shape to the top edge of the slide.
top?: boolean;
Property Value
boolean
Remarks
type
Returns the type of this shape. See PowerPoint.ShapeType for details.
type?: boolean;
Property Value
boolean
Remarks
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
width
Specifies the width, in points, of the shape. Throws an InvalidArgument exception when set with a negative value.
width?: boolean;
Property Value
boolean
Remarks
zOrderPosition
Returns the z-order position of the shape, with 0 representing the bottom of the order stack. Every shape on a slide has a unique z-order, but each slide also has a unique z-order stack, so two shapes on separate slides could have the same z-order number.
zOrderPosition?: boolean;
Property Value
boolean