Word) (Shape.LayoutInCell 屬性

會傳回 Long ,代表表格中的圖形是否會顯示內部或外部資料表。

語法

expression. LayoutInCell

需要 expression。 代表 Shape 物件的變數。

註解

True 表示指定的圖片會顯示內的表格。 False 表示指定的圖片會顯示表格外。

LayoutInCell 屬性對應於 [ 進階配置] 對話方塊中的圖片格式的 表格儲存格中的版面配置選項。

注意事項

[!注意事項] 只有當 WrapFormat 物件的 Type 屬性設為 wdWrapTypeInlinewdWrapTypeNone 以外設定 LayoutInCell 屬性將會生效。

範例

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

另請參閱

Shape 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應