Office 共通 API の要件セット

要件セットは、API メンバーの名前付きグループです。 Office アドインでは、マニフェストで指定されている要件セットを使用するか、ランタイム チェックを使用して、Office アプリケーションがアドインに必要な API をサポートしているかどうかを判断します。 詳細については、「 Office のバージョンと要件セット」を参照してください。

ヒント

アプリケーション固有の API 要件セットをお探しですか? 次の API 要件セットを参照してください。

共通 API の要件セット

以下のセクションでは、共通 API 要件セット、各セット内のメソッド、およびその要件セットをサポートする Office クライアント アプリケーションについて説明します。 特に指定がない限り、これらの API 要件セットのバージョンはすべて 1.1 です。

ヒント

Office アプリケーションとバージョンでアドインと要件セットがサポートされている場所に関する情報が必要ですか? 「 Office アドインの Office クライアント アプリケーションとプラットフォームの可用性」を参照してください。

ActiveView

最小限の Office アプリケーションのサポート セット内のメソッド
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Document.getActiveViewAsync

AddInCommands

アドイン コマンドの要件セット」を参照してください。


BindingEvents

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • Binding.addHandlerAsync
  • Binding.removeHandlerAsync

CompressedFile

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getFileAsync メソッドを使用するときの、
バイト配列 (Office.FileType.Compressed) としての Office Open XML (OOXML) 形式への出力をサポートします。

ContextMenuApi

最小限の Office アプリケーションのサポート セット内のメソッド
コンテキスト メニュー API の要件セットを参照してください。
  • Office.contextMenu.requestUpdate

CustomXmlParts

最小限の Office アプリケーションのサポート セット内のメソッド
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • CustomXmlNode.getNodesAsync
  • CustomXmlNode.getNodeValueAsync
  • CustomXmlNode.getTextAsync
  • CustomXmlNode.getXmlAsync
  • CustomXmlNode.setNodeValueAsync
  • CustomXmlNode.setTextAsync
  • CustomXmlNode.setXmlAsync
  • CustomXmlPart.addHandlerAsync
  • CustomXmlPart.deleteAsync
  • CustomXmlPart.getNodesAsync
  • CustomXmlPart.getXmlAsync
  • CustomXmlPart.removeHandlerAsync
  • CustomXmlParts.addAsync
  • CustomXmlParts.getByIdAsync
  • CustomXmlParts.getByNamespaceAsync
  • CustomXmlPrefixMappings.addNamespaceAsync
  • CustomXmlPrefixMappings.getNamespaceAsync
  • CustomXmlPrefixMappings.getPrefixAsync

DevicePermissionService

最小限の Office アプリケーションのサポート セット内のメソッド
「デバイス アクセス許可サービスの要件セット」を参照してください。
  • DevicePermission.requestPermissions
  • DevicePermission.requestPermissionsAsync

DialogApi

最小限の Office アプリケーションのサポート セット内のメソッド
ダイアログ API の要件セット」を参照してください。
  • UI.messageParent
  • UI.displayDialogAsync
  • UI.closeContainer
  • UI.Dialog

DialogOrigin

最小限の Office アプリケーションのサポート セット内のメソッド
「ダイアログ オリジンの要件セット」を参照してください。 クロスドメイン サポート:
  • UI.messageParent
  • UI。Dialog.messageChild

DocumentEvents

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • OneNote on the web
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • Document.addHandlerAsync
  • Document.removeHandlerAsync

File

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • Document.getFileAsync
  • File.closeAsync
  • File.getSliceAsync

HtmlCoercion

最小限の Office アプリケーションのサポート セット内のメソッド
  • OneNote on the web
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getSelectedDataAsync、Document.setSelectedDataAsync、Binding.getDataAsync、または Binding.setDataAsync の各メソッドを使用してデータを読み書きするとき、HTML への強制型変換 (Office.CoercionType.Html) をサポートします。

IdentityAPI

最小限の Office アプリケーションのサポート セット内のメソッド
Identity API の要件セット」を参照してください。
  • Auth.getAccessToken

ImageCoercion

最小限の Office アプリケーションのサポート セット内のメソッド
画像強制型変換要件セット」を参照してください。
  • Document.setSelectedDataAsync

KeyboardShortcuts

最小限の Office アプリケーションのサポート セット内のメソッド
キーボード ショートカットの要件セットを参照してください。
  • Office.actions.areShortcutsInUse
  • Office.actions.getShortcuts
  • Office.actions.replaceShortcuts

Mailbox

最小限の Office アプリケーションのサポート セット内のメソッド
  • Outlook on the web
  • Windows 上の新しい Outlook
  • クラシック Outlook on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Outlook on Android
  • Outlook on Mac
  • Outlook on iOS
Outlook API 要件セットについて」をご覧ください。

MatrixBindings

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • Bindings.addFromNamedItemAsync
  • Bindings.addFromSelectionAsync
  • Bindings.getAllAsync
  • Bindings.getByIdAsync
  • Bindings.releaseByIdAsync
  • Binding.getDataAsync
  • Binding.setDataAsync

MatrixCoercion

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getSelectedDataAsync、Document.setSelectedDataAsync、Binding.getDataAsync、または Binding.setDataAsync の各メソッドを使用してデータを読み書きするとき、"matrix" (配列の配列) データ構造への強制型変換 (Office.CoercionType.Matrix) をサポートします。

NestedAppAuth

最小限の Office アプリケーションのサポート セット内のメソッド
ネストされたアプリの認証要件セットを参照してください。
  • Office.auth.getAuthContext

OoxmlCoercion

最小限の Office アプリケーションのサポート セット内のメソッド
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getSelectedDataAsync、Document.setSelectedDataAsync、Binding.getDataAsync、または Binding.setDataAsync の各メソッドを使用してデータを読み書きするとき、Open Office XML (OOXML) 形式への強制型変換 (Office.CoercionType.Ooxml) をサポートします。

OpenBrowserWindowApi

最小限の Office アプリケーションのサポート セット内のメソッド
Open Browser Window API の要件セットを参照してください。
  • Office.context.ui.openBrowserWindow

PdfFile

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getFileAsync メソッドを使用するとき、PDF 形式 (Office.FileType.Pdf) への出力をサポートします。

RibbonApi

最小限の Office アプリケーションのサポート セット内のメソッド
リボン API の要件セットを参照してください。
  • Office.ribbon.requestUpdate

Selection

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Project on Windows
    • ボリューム ライセンスの永続的 Office 2016
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • Document.getSelectedDataAsync
  • Document.setSelectedDataAsync

Settings

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • OneNote on the web
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • Settings.get
  • Settings.remove
  • Settings.saveAsync
  • Settings.set

SharedRuntime

最小限の Office アプリケーションのサポート セット内のメソッド
共有 ランタイム要件セットを参照してください。
  • Office.addin.getStartupBehavior
  • Office.addin.hide
  • Office.addin.onVisibilityModeChanged
  • Office.addin.setStartupBehavior
  • Office.addin.showAsTaskpane
  • Office.BeforeDocumentCloseNotification.disable
  • Office.BeforeDocumentCloseNotification.enable
  • Office.BeforeDocumentCloseNotification.onCloseActionCancelled

TableBindings

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • Bindings.addFromNamedItemAsync
  • Bindings.addFromSelectionAsync
  • Bindings.getAllAsync
  • Bindings.getByIdAsync
  • Bindings.releaseByIdAsync
  • Binding.addColumnsAsync
  • Binding.addRowsAsync
  • Binding.deleteAllDataValuesAsync
  • Binding.getDataAsync
  • Binding.setDataAsync

TableCoercion

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getSelectedDataAsync、Document.setSelectedDataAsync、Binding.getDataAsync、または Binding.setDataAsync の各メソッドを使用してデータを読み書きするとき、"table" データ構造への強制型変換 (Office.CoercionType.Table) をサポートします。

TaskPaneApi

最小限の Office アプリケーションのサポート セット内のメソッド
作業ウィンドウの API 要件セットを参照してください。
  • TaskPane.setWidth

TextBindings

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
  • Bindings.addFromNamedItemAsync
  • Bindings.addFromSelectionAsync
  • Bindings.getAllAsync
  • Bindings.getByIdAsync
  • Bindings.releaseByIdAsync
  • Binding.getDataAsync
  • Binding.setDataAsync

TextCoercion

最小限の Office アプリケーションのサポート セット内のメソッド
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on iPad
  • OneNote on the web
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Project on Windows
    • ボリューム ライセンスの永続的 Office 2016
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getSelectedDataAsync、Document.setSelectedDataAsync、Binding.getDataAsync、または Binding.setDataAsync の各メソッドを使用してデータを読み書きするとき、テキスト形式への強制型変換 (Office.CoercionType.Text) をサポートします。

TextFile

最小限の Office アプリケーションのサポート セット内のメソッド
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getFileAsync メソッドを使用するとき、テキスト形式 (Office.FileType.Text) への出力をサポートします。

要件セットの一部ではないメソッド

Office JavaScript API の次のメソッドは、要件セットの一部ではありません。 アドインでこれらのいずれかのメソッドが必要な場合は、アドインのマニフェストで <Methods> 要素と <Method> 要素を使用して必須であることを宣言するか、if ステートメントを使用してランタイム チェックを実行します。 詳細については、「 Office アプリケーションと API の要件を指定する」を参照してください。

メソッド名 最小限の Office アプリケーションのサポート
Bindings.addFromPromptAsync
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
Document.getFilePropertiesAsync
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Document.getProjectFieldAsync
  • Project Standard 2016
  • Project Professional 2016
Document.getResourceFieldAsync
  • Project Standard 2016
  • Project Professional 2016
Document.getSelectedResourceAsync
  • Project Standard 2016
  • Project Professional 2016
Document.getSelectedTaskAsync
  • Project Standard 2016
  • Project Professional 2016
Document.getSelectedViewAsync
  • Project Standard 2016
  • Project Professional 2016
Document.getTaskAsync
  • Project Standard 2016
  • Project Professional 2016
Document.getTaskFieldAsync
  • Project Standard 2016
  • Project Professional 2016
Document.goToByIdAsync
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on Mac
  • PowerPoint on iPad
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on Mac
  • Word on iPad
Settings.addHandlerAsync
  • Excel on the web
Settings.refreshAsync
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • PowerPoint on the web
  • PowerPoint on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Word on the web
  • Word on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
Settings.removeHandlerAsync
  • Excel on the web
TableBinding.clearFormatsAsync
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
TableBinding.setFormatsAsync
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad
TableBinding.setTableOptionsAsync
  • Excel on the web
  • Excel on Windows
    • Microsoft 365 サブスクリプション
    • 永続的 Office 2016
  • Excel on Mac
  • Excel on iPad

関連項目