Excel.Interfaces.ShapeCollectionLoadOptions interface
Represents a collection of all the shapes in the worksheet.
$all | Specifying |
alt |
For EACH ITEM in the collection: Specifies the alternative description text for a |
alt |
For EACH ITEM in the collection: Specifies the alternative title text for a |
connection |
For EACH ITEM in the collection: Returns the number of connection sites on this shape. |
display |
For EACH ITEM in the collection: Gets the display name of the shape. A newly created shape has a generated name that is localized and may not match its |
fill | For EACH ITEM in the collection: Returns the fill formatting of this shape. |
geometric |
For EACH ITEM in the collection: Returns the geometric shape associated with the shape. An error will be thrown if the shape type is not "GeometricShape". |
geometric |
For EACH ITEM in the collection: Specifies the geometric shape type of this geometric shape. See |
group | For EACH ITEM in the collection: Returns the shape group associated with the shape. An error will be thrown if the shape type is not "GroupShape". |
height | For EACH ITEM in the collection: Specifies the height, in points, of the shape. Throws an |
id | For EACH ITEM in the collection: Specifies the shape identifier. |
image | For EACH ITEM in the collection: Returns the image associated with the shape. An error will be thrown if the shape type is not "Image". |
left | For EACH ITEM in the collection: The distance, in points, from the left side of the shape to the left side of the worksheet. Throws an |
level | For EACH ITEM in the collection: Specifies the level of the specified shape. For example, a level of 0 means that the shape is not part of any groups, a level of 1 means the shape is part of a top-level group, and a level of 2 means the shape is part of a sub-group of the top level. |
line | For EACH ITEM in the collection: Returns the line associated with the shape. An error will be thrown if the shape type is not "Line". |
line |
For EACH ITEM in the collection: Returns the line formatting of this shape. |
lock |
For EACH ITEM in the collection: Specifies if the aspect ratio of this shape is locked. |
name | For EACH ITEM in the collection: Specifies the name of the shape. |
parent |
For EACH ITEM in the collection: Specifies the parent group of this shape. |
placement | For EACH ITEM in the collection: Represents how the object is attached to the cells below it. |
rotation | For EACH ITEM in the collection: Specifies the rotation, in degrees, of the shape. |
text |
For EACH ITEM in the collection: Returns the text frame object of this shape. |
top | For EACH ITEM in the collection: The distance, in points, from the top edge of the shape to the top edge of the worksheet. Throws an |
type | For EACH ITEM in the collection: Returns the type of this shape. See |
visible | For EACH ITEM in the collection: Specifies if the shape is visible. |
width | For EACH ITEM in the collection: Specifies the width, in points, of the shape. Throws an |
z |
For EACH ITEM in the collection: Returns the position of the specified shape in the z-order, with 0 representing the bottom of the order stack. |
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
For EACH ITEM in the collection: Specifies the alternative description text for a Shape
object.
altTextDescription?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Specifies the alternative title text for a Shape
object.
altTextTitle?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Returns the number of connection sites on this shape.
connectionSiteCount?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Gets the display name of the shape. A newly created shape has a generated name that is localized and may not match its name
. In this scenario, you can use this API to get the name that is displayed in the UI.
displayName?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Returns the fill formatting of this shape.
fill?: Excel.Interfaces.ShapeFillLoadOptions;
Property Value
Remarks
For EACH ITEM in the collection: Returns the geometric shape associated with the shape. An error will be thrown if the shape type is not "GeometricShape".
geometricShape?: Excel.Interfaces.GeometricShapeLoadOptions;
Property Value
Remarks
For EACH ITEM in the collection: Specifies the geometric shape type of this geometric shape. See Excel.GeometricShapeType
for details. Returns null
if the shape type is not "GeometricShape".
geometricShapeType?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Returns the shape group associated with the shape. An error will be thrown if the shape type is not "GroupShape".
group?: Excel.Interfaces.ShapeGroupLoadOptions;
Property Value
Remarks
For EACH ITEM in the collection: Specifies the height, in points, of the shape. Throws an InvalidArgument
exception when set with a negative value or zero as an input.
height?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Specifies the shape identifier.
id?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Returns the image associated with the shape. An error will be thrown if the shape type is not "Image".
image?: Excel.Interfaces.ImageLoadOptions;
Property Value
Remarks
For EACH ITEM in the collection: The distance, in points, from the left side of the shape to the left side of the worksheet. Throws an InvalidArgument
exception when set with a negative value as an input.
left?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Specifies the level of the specified shape. For example, a level of 0 means that the shape is not part of any groups, a level of 1 means the shape is part of a top-level group, and a level of 2 means the shape is part of a sub-group of the top level.
level?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Returns the line associated with the shape. An error will be thrown if the shape type is not "Line".
line?: Excel.Interfaces.LineLoadOptions;
Property Value
Remarks
For EACH ITEM in the collection: Returns the line formatting of this shape.
lineFormat?: Excel.Interfaces.ShapeLineFormatLoadOptions;
Property Value
Remarks
For EACH ITEM in the collection: Specifies if the aspect ratio of this shape is locked.
lockAspectRatio?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Specifies the name of the shape.
name?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Specifies the parent group of this shape.
parentGroup?: Excel.Interfaces.ShapeLoadOptions;
Property Value
Remarks
For EACH ITEM in the collection: Represents how the object is attached to the cells below it.
placement?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Specifies the rotation, in degrees, of the shape.
rotation?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Returns the text frame object of this shape.
textFrame?: Excel.Interfaces.TextFrameLoadOptions;
Property Value
Remarks
For EACH ITEM in the collection: The distance, in points, from the top edge of the shape to the top edge of the worksheet. Throws an InvalidArgument
exception when set with a negative value as an input.
top?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Returns the type of this shape. See Excel.ShapeType
for details.
type?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Specifies if the shape is visible.
visible?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Specifies the width, in points, of the shape. Throws an InvalidArgument
exception when set with a negative value or zero as an input.
width?: boolean;
Property Value
boolean
Remarks
For EACH ITEM in the collection: Returns the position of the specified shape in the z-order, with 0 representing the bottom of the order stack.
zOrderPosition?: boolean;
Property Value
boolean
Remarks
Office Add-ins feedback
Office Add-ins is an open source project. Select a link to provide feedback: