Office.ActiveView enum
ユーザーがドキュメントを編集できるかどうかなど、ドキュメントのアクティブなビューの状態を指定します。
注釈
例
// Get whether the current view is edit or read.
Office.context.document.getActiveViewAsync(function (asyncResult) {
if (asyncResult.status == "failed") {
showMessage("Action failed with error: " + asyncResult.error.message);
} else {
const activeView : Office.ActiveView = asyncResult.value;
showMessage("The current view is " + activeView);
}
});
フィールド
| Edit | Office アプリケーションのアクティブ ビューを使用すると、ユーザーはドキュメント内のコンテンツを編集できます。 |
| Read | Office アプリケーションのアクティブ ビューでは、ユーザーがドキュメント内のコンテンツを読み取るだけです。 |