splitWindow.orientation 參數

splitWindow.orientation 是在編輯器應用程式中實作分割視窗的便利參數。應用程式負責實際的視窗管理。 不是所有編輯器應用程式都支援分割視窗。

在分割視窗中,可以並列(垂直方向)或由上而下(水平方向)堆疊多個編輯視圖。

可用性

query 指令
set 指令
current 參數
default 參數
install 參數

範圍

splitWindow.orientation 會將範圍設在現行視圖所在的視窗。
current.splitWindow.orientation 會將範圍設在現行視圖所在的視窗。
default.splitWindow.orientation 會廣域性地設定範圍。
install.splitWindow.orientation 會廣域性地設定範圍。

語法

query splitWindow.orientation
set splitWindow.orientation [ default | vertical | horizontal ]
query current.splitWindow.orientation
query default.splitWindow.orientation
set default.splitWindow.orientation [ install | vertical | horizontal ]
query install.splitWindow.orientation 

參數

default 如果您在 set splitWindow.orientation 指令中指定 default 參數, 則包含現行視圖的視窗會使用 default.splitWindow.orientation 的值來判斷其視圖的分割方向。
vertical 如果您在 set splitWindow.orientation 指令中指定 vertical 參數,在現行視圖所在的視窗中,多個編輯視圖之間的邊框方向應該是垂直的。 如果您在 set default.splitWindow.orientation 指令中指定 vertical 參數,在 splitWindow.orientation 設為 default 的所有視窗中,多個視圖的分割方向應該是垂直的。
horizontal 如果您在 set splitWindow.orientation 指令中指定 horizontal 參數,在現行視圖所在的視窗中,多個編輯視圖之間的邊框方向應該是水平的。 如果您在 set default.splitWindow.orientation 指令中指定 horizontal 參數,在 splitWindow.orientation 設為 default 的所有視窗中,多個視圖的分割方向應該是水平的。
install 如果您在 set default.splitWindow.orientation 指令中指定 install 參數,splitWindow.orientation 設為 default 的所有視窗都會利用 install.splitWindow.orientation 來決定多個視圖的顯示方式。

說明

如果您在 set splitWindow.orientation 指令中沒有指定任何參數,則會採用 default。如果您在 set default.splitWindow.orientation 指令中沒有指定任何參數,則會採用 install

如果現行視圖所在視窗中的分割方向是垂直的,query current.splitWindow.orientation 指令會傳回 vertical,如果現行視圖的視窗分割方向是水平的,就會傳回 horizontal

範例

query splitWindow.orientation
set splitWindow.orientation horizontal
query current.splitWindow.orientation
query default.splitWindow.orientation
set default.splitWindow.orientation vertical
query install.splitWindow.orientation 

相關參照
query 指令
set 指令
current 參數
default 參數
install 參數
multipleViews 參數
splitWindow 參數