Word.Interfaces.ShapeCollectionLoadOptions interface
Contains a collection of Word.Shape objects. Currently, only the following shapes are supported: text boxes, geometric shapes, groups, pictures and canvases.
Remarks
[ API set: WordApiDesktop 1.2 ]
Properties
$all | Specifying |
allow |
For EACH ITEM in the collection: Specifies whether a given shape can overlap other shapes. |
alt |
For EACH ITEM in the collection: Specifies a string that represents the alternative text associated with the shape. |
body | For EACH ITEM in the collection: Represents the body object of the shape. Only applies to text boxes and geometric shapes. |
canvas | For EACH ITEM in the collection: Gets the canvas associated with the shape. An object with its |
fill | For EACH ITEM in the collection: Returns the fill formatting of the shape. |
geometric |
For EACH ITEM in the collection: The geometric shape type of the shape. It will be null if isn't a geometric shape. |
height | For EACH ITEM in the collection: The height, in points, of the shape. |
height |
For EACH ITEM in the collection: The percentage of shape height to vertical relative size, see Word.RelativeSize. For an inline or child shape, it can't be set. |
id | For EACH ITEM in the collection: Gets an integer that represents the shape identifier. |
is |
For EACH ITEM in the collection: Check whether this shape is a child of a group shape or a canvas shape. |
left | For EACH ITEM in the collection: The distance, in points, from the left side of the shape to the horizontal relative position, see Word.RelativeHorizontalPosition. For an inline shape, it will return 0 and can't be set. For a child shape in a canvas or group, it's relative to the top left corner. |
left |
For EACH ITEM in the collection: The relative left position as a percentage from the left side of the shape to the horizontal relative position, see Word.RelativeHorizontalPosition. For an inline or child shape, it will return 0 and can't be set. |
lock |
For EACH ITEM in the collection: Specifies if the aspect ratio of this shape is locked. |
name | For EACH ITEM in the collection: The name of the shape. |
parent |
For EACH ITEM in the collection: Gets the top-level parent canvas shape of this child shape. It will be null if it isn't a child shape of a canvas. |
parent |
For EACH ITEM in the collection: Gets the top-level parent group shape of this child shape. It will be null if it isn't a child shape of a group. |
relative |
For EACH ITEM in the collection: The relative horizontal position of the shape. For an inline shape, it can't be set. For details, see Word.RelativeHorizontalPosition. |
relative |
For EACH ITEM in the collection: The relative horizontal size of the shape. For an inline or child shape, it can't be set. For details, see Word.RelativeHorizontalPosition. |
relative |
For EACH ITEM in the collection: The relative vertical position of the shape. For an inline shape, it can't be set. For details, see Word.RelativeVerticalPosition. |
relative |
For EACH ITEM in the collection: The relative vertical size of the shape. For an inline or child shape, it can't be set. For details, see Word.RelativeHorizontalPosition. |
rotation | For EACH ITEM in the collection: Specifies the rotation, in degrees, of the shape. Not applicable to Canvas shape. |
shape |
For EACH ITEM in the collection: Gets the shape group associated with the shape. An object with its |
text |
For EACH ITEM in the collection: Gets the text frame object of the shape. |
text |
For EACH ITEM in the collection: Returns the text wrap formatting of the shape. |
top | For EACH ITEM in the collection: The distance, in points, from the top edge of the shape to the vertical relative position, see Word.RelativeVerticalPosition. For an inline shape, it will return 0 and can't be set. For a child shape in a canvas or group, it's relative to the top left corner. |
top |
For EACH ITEM in the collection: The relative top position as a percentage from the top edge of the shape to the vertical relative position, see Word.RelativeVerticalPosition. For an inline or child shape, it will return 0 and can't be set. |
type | For EACH ITEM in the collection: Gets the shape type. Currently, only the following shapes are supported: text boxes, geometric shapes, groups, pictures, and canvases. |
visible | For EACH ITEM in the collection: Specifies if the shape is visible. Not applicable to inline shapes. |
width | For EACH ITEM in the collection: The width, in points, of the shape. |
width |
For EACH ITEM in the collection: The percentage of shape width to horizontal relative size, see Word.RelativeSize. For an inline or child shape, it can't be set. |
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
allowOverlap
For EACH ITEM in the collection: Specifies whether a given shape can overlap other shapes.
allowOverlap?: boolean;
Property Value
boolean
Remarks
altTextDescription
For EACH ITEM in the collection: Specifies a string that represents the alternative text associated with the shape.
altTextDescription?: boolean;
Property Value
boolean
Remarks
body
For EACH ITEM in the collection: Represents the body object of the shape. Only applies to text boxes and geometric shapes.
body?: Word.Interfaces.BodyLoadOptions;
Property Value
Remarks
canvas
For EACH ITEM in the collection: Gets the canvas associated with the shape. An object with its isNullObject
property set to true
will be returned if the shape type isn't "Canvas". For further information, see *OrNullObject methods and properties.
canvas?: Word.Interfaces.CanvasLoadOptions;
Property Value
Remarks
fill
For EACH ITEM in the collection: Returns the fill formatting of the shape.
fill?: Word.Interfaces.ShapeFillLoadOptions;
Property Value
Remarks
geometricShapeType
For EACH ITEM in the collection: The geometric shape type of the shape. It will be null if isn't a geometric shape.
geometricShapeType?: boolean;
Property Value
boolean
Remarks
height
For EACH ITEM in the collection: The height, in points, of the shape.
height?: boolean;
Property Value
boolean
Remarks
heightRelative
For EACH ITEM in the collection: The percentage of shape height to vertical relative size, see Word.RelativeSize. For an inline or child shape, it can't be set.
heightRelative?: boolean;
Property Value
boolean
Remarks
id
For EACH ITEM in the collection: Gets an integer that represents the shape identifier.
id?: boolean;
Property Value
boolean
Remarks
isChild
For EACH ITEM in the collection: Check whether this shape is a child of a group shape or a canvas shape.
isChild?: boolean;
Property Value
boolean
Remarks
left
For EACH ITEM in the collection: The distance, in points, from the left side of the shape to the horizontal relative position, see Word.RelativeHorizontalPosition. For an inline shape, it will return 0 and can't be set. For a child shape in a canvas or group, it's relative to the top left corner.
left?: boolean;
Property Value
boolean
Remarks
leftRelative
For EACH ITEM in the collection: The relative left position as a percentage from the left side of the shape to the horizontal relative position, see Word.RelativeHorizontalPosition. For an inline or child shape, it will return 0 and can't be set.
leftRelative?: boolean;
Property Value
boolean
Remarks
lockAspectRatio
For EACH ITEM in the collection: Specifies if the aspect ratio of this shape is locked.
lockAspectRatio?: boolean;
Property Value
boolean
Remarks
name
For EACH ITEM in the collection: The name of the shape.
name?: boolean;
Property Value
boolean
Remarks
parentCanvas
For EACH ITEM in the collection: Gets the top-level parent canvas shape of this child shape. It will be null if it isn't a child shape of a canvas.
parentCanvas?: Word.Interfaces.ShapeLoadOptions;
Property Value
Remarks
parentGroup
For EACH ITEM in the collection: Gets the top-level parent group shape of this child shape. It will be null if it isn't a child shape of a group.
parentGroup?: Word.Interfaces.ShapeLoadOptions;
Property Value
Remarks
relativeHorizontalPosition
For EACH ITEM in the collection: The relative horizontal position of the shape. For an inline shape, it can't be set. For details, see Word.RelativeHorizontalPosition.
relativeHorizontalPosition?: boolean;
Property Value
boolean
Remarks
relativeHorizontalSize
For EACH ITEM in the collection: The relative horizontal size of the shape. For an inline or child shape, it can't be set. For details, see Word.RelativeHorizontalPosition.
relativeHorizontalSize?: boolean;
Property Value
boolean
Remarks
relativeVerticalPosition
For EACH ITEM in the collection: The relative vertical position of the shape. For an inline shape, it can't be set. For details, see Word.RelativeVerticalPosition.
relativeVerticalPosition?: boolean;
Property Value
boolean
Remarks
relativeVerticalSize
For EACH ITEM in the collection: The relative vertical size of the shape. For an inline or child shape, it can't be set. For details, see Word.RelativeHorizontalPosition.
relativeVerticalSize?: boolean;
Property Value
boolean
Remarks
rotation
For EACH ITEM in the collection: Specifies the rotation, in degrees, of the shape. Not applicable to Canvas shape.
rotation?: boolean;
Property Value
boolean
Remarks
shapeGroup
For EACH ITEM in the collection: Gets the shape group associated with the shape. An object with its isNullObject
property set to true
will be returned if the shape type isn't "GroupShape". For further information, see *OrNullObject methods and properties.
shapeGroup?: Word.Interfaces.ShapeGroupLoadOptions;
Property Value
Remarks
textFrame
For EACH ITEM in the collection: Gets the text frame object of the shape.
textFrame?: Word.Interfaces.TextFrameLoadOptions;
Property Value
Remarks
textWrap
For EACH ITEM in the collection: Returns the text wrap formatting of the shape.
textWrap?: Word.Interfaces.ShapeTextWrapLoadOptions;
Property Value
Remarks
top
For EACH ITEM in the collection: The distance, in points, from the top edge of the shape to the vertical relative position, see Word.RelativeVerticalPosition. For an inline shape, it will return 0 and can't be set. For a child shape in a canvas or group, it's relative to the top left corner.
top?: boolean;
Property Value
boolean
Remarks
topRelative
For EACH ITEM in the collection: The relative top position as a percentage from the top edge of the shape to the vertical relative position, see Word.RelativeVerticalPosition. For an inline or child shape, it will return 0 and can't be set.
topRelative?: boolean;
Property Value
boolean
Remarks
type
For EACH ITEM in the collection: Gets the shape type. Currently, only the following shapes are supported: text boxes, geometric shapes, groups, pictures, and canvases.
type?: boolean;
Property Value
boolean
Remarks
visible
For EACH ITEM in the collection: Specifies if the shape is visible. Not applicable to inline shapes.
visible?: boolean;
Property Value
boolean
Remarks
width
For EACH ITEM in the collection: The width, in points, of the shape.
width?: boolean;
Property Value
boolean
Remarks
widthRelative
For EACH ITEM in the collection: The percentage of shape width to horizontal relative size, see Word.RelativeSize. For an inline or child shape, it can't be set.
widthRelative?: boolean;
Property Value
boolean
Remarks
Office Add-ins