Skip to content

Latest commit

 

History

History
52 lines (29 loc) · 1.4 KB

Word.Shape.LayoutInCell.md

File metadata and controls

52 lines (29 loc) · 1.4 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shape.LayoutInCell property (Word)
vbawd10.chm161480849
vbawd10.chm161480849
Word.Shape.LayoutInCell
6a80b806-2a7b-aced-4601-774d8937ee2f
06/08/2017
medium

Shape.LayoutInCell property (Word)

Returns a Long that represents whether a shape in a table is displayed inside or outside the table.

Syntax

expression. LayoutInCell

expression Required. A variable that represents a Shape object.

Remarks

True indicates that a specified picture is displayed inside the table. False indicates that a specified picture is displayed outside the table.

The LayoutInCell property corresponds to the Layout in table cell option in the Advanced Layout dialog box for picture formatting.

Note

Setting the LayoutInCell property will take effect only if the Type property of the WrapFormat object is set to something other than wdWrapTypeInline or wdWrapTypeNone.

Example

The following example disables the Layout in table cell option for the first shape in the active document. This example assumes that the specified shape is within a table and is not an inline shape.

ActiveDocument.Shapes(1).LayoutInCell = False

See also

Shape Object

[!includeSupport and feedback]