PowerPoint) (Table.TableDirection 屬性

會傳回或設定表格儲存格的排序方向。 讀取/寫入。

語法

expression。 TableDirection

表達 代表 Table 物件的變數。

傳回值

PpDirection

註解

TableDirection 屬性的預設值為 ppDirectionLefttToRight ,除非將 LanguageSettings 屬性或 DefaultLanguageID 屬性設為從右至左語言,在該情況下,預設值為 ppDirectionRightToLeft 。

TableDirection 屬性的值可以是下列其中一個 PpDirection 常數。

ppDirectionLeftToRight
ppDirectionMixed
ppDirectionRightToLeft

當您使用 TextDirection 屬性時,可能會傳回 ppDirectionMixed 常數。

範例

本範例會將選取表格中,儲存格的排序方向設定為由左至右 (第一欄為最左邊的欄)。

ActiveWindow.Selection.ShapeRange.Table.TableDirection = _
    ppDirectionLeftToRight

另請參閱

Table 物件

支援和意見反應

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