Share via


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) 形式への出力をサポートします。

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 アプリケーションの最小サポート セット内のメソッド
「Device Permission Service 要件セット」を参照してください。
  • 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 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) をサポートします。

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 アプリケーションの最小サポート セット内のメソッド
ブラウザー ウィンドウ 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) をサポートします。

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

関連項目