LayoutInCell Property

Microsoft Word Visual Basic

LayoutInCell Property

Returns a Long that represents whether a shape in a table is displayed inside the table or outside of the table. True indicates that a specified picture is displayed within the table. False indicates that a specified picture is displayed outside of the table.

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.

expression.LayoutInCell

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

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

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