Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Office Common API requirement sets
-
2025年10月10日
Requirement sets are named groups of API members. Office Add-ins use requirement sets specified in the manifest or use a runtime check to determine whether an Office application supports APIs that an add-in needs. For more information, see Office versions and requirement sets.
Tip
Looking for the application-specific API requirement sets? See the following API requirement sets.
- Excel JavaScript API requirement sets (ExcelApi)
- Word JavaScript API requirement sets (WordApi)
- OneNote JavaScript API requirement sets (OneNoteApi)
- PowerPoint JavaScript API requirement sets (PowerPointApi)
- Understanding Outlook API requirement sets (Mailbox)
Common API requirement sets
The following sections list the Common API requirement sets, the methods in each set, and the Office client applications that support that requirement set. All of these API requirement sets are version 1.1, unless otherwise specified.
Tip
Need information about where add-ins and requirement sets are supported by Office application and version? See Office client application and platform availability for Office Add-ins.
ActiveView
Minimum Office application support | Methods in set |
---|---|
|
|
AddInCommands
See Add-in command requirement sets.
BindingEvents
Minimum Office application support | Methods in set |
---|---|
|
|
CompressedFile
Minimum Office application support | Methods in set |
---|---|
|
Supports output to Office Open XML (OOXML) format as a byte array (Office.FileType.Compressed) when using the Document.getFileAsync method. |
ContextMenuApi
Minimum Office application support | Methods in set |
---|---|
See Context Menu API requirement sets. |
|
CustomXmlParts
Minimum Office application support | Methods in set |
---|---|
|
|
DevicePermissionService
Minimum Office application support | Methods in set |
---|---|
See Device Permission Service requirement sets. |
|
DialogApi
Minimum Office application support | Methods in set |
---|---|
See Dialog API requirement sets. |
|
DialogOrigin
Minimum Office application support | Methods in set |
---|---|
See Dialog Origin requirement sets. | Cross-domain support for:
|
DocumentEvents
Minimum Office application support | Methods in set |
---|---|
|
|
File
Minimum Office application support | Methods in set |
---|---|
|
|
HtmlCoercion
Minimum Office application support | Methods in set |
---|---|
|
Supports coercion to HTML (Office.CoercionType.Html) when reading and writing data using the Document.getSelectedDataAsync, Document.setSelectedDataAsync, Binding.getDataAsync, or Binding.setDataAsync methods. |
IdentityAPI
Minimum Office application support | Methods in set |
---|---|
See Identity API requirement sets. |
|
ImageCoercion
Minimum Office application support | Methods in set |
---|---|
See Image Coercion requirement sets. |
|
KeyboardShortcuts
Minimum Office application support | Methods in set |
---|---|
See Keyboard Shortcuts requirement sets. |
|
Mailbox
Minimum Office application support | Methods in set |
---|---|
|
See Understanding Outlook API requirement sets. |
MatrixBindings
Minimum Office application support | Methods in set |
---|---|
|
|
MatrixCoercion
Minimum Office application support | Methods in set |
---|---|
|
Supports coercion to the "matrix" (array of arrays) data structure (Office.CoercionType.Matrix) when reading and writing data using the Document.getSelectedDataAsync, Document.setSelectedDataAsync, Binding.getDataAsync, or Binding.setDataAsync methods. |
NestedAppAuth
Minimum Office application support | Methods in set |
---|---|
See Nested app auth requirement sets. |
|
OoxmlCoercion
Minimum Office application support | Methods in set |
---|---|
|
Supports coercion to Open Office XML (OOXML) format (Office.CoercionType.Ooxml) when reading and writing data using the Document.getSelectedDataAsync, Document.setSelectedDataAsync, Binding.getDataAsync, or Binding.setDataAsync methods. |
OpenBrowserWindowApi
Minimum Office application support | Methods in set |
---|---|
See Open Browser Window API requirement sets. |
|
PdfFile
Minimum Office application support | Methods in set |
---|---|
|
Supports output to PDF format (Office.FileType.Pdf) when using the Document.getFileAsync method. |
RibbonApi
Minimum Office application support | Methods in set |
---|---|
See Ribbon API requirement sets. |
|
Selection
Minimum Office application support | Methods in set |
---|---|
|
|
Settings
Minimum Office application support | Methods in set |
---|---|
|
|
SharedRuntime
Minimum Office application support | Methods in set |
---|---|
See Shared runtime requirement sets. |
|
TableBindings
Minimum Office application support | Methods in set |
---|---|
|
|
TableCoercion
Minimum Office application support | Methods in set |
---|---|
|
Supports coercion to the "table" data structure (Office.CoercionType.Table) when reading and writing data using the Document.getSelectedDataAsync, Document.setSelectedDataAsync, Binding.getDataAsync, or Binding.setDataAsync methods. |
TaskPaneApi
Minimum Office application support | Methods in set |
---|---|
See Task Pane API requirement sets. |
|
TextBindings
Minimum Office application support | Methods in set |
---|---|
|
|
TextCoercion
Minimum Office application support | Methods in set |
---|---|
|
Supports coercion to text format (Office.CoercionType.Text) when reading and writing data using the Document.getSelectedDataAsync, Document.setSelectedDataAsync, Binding.getDataAsync, or Binding.setDataAsync methods. |
TextFile
Minimum Office application support | Methods in set |
---|---|
|
Supports output to text format (Office.FileType.Text) when using the Document.getFileAsync method. |
Methods that aren't part of a requirement set
The following methods in the Office JavaScript API aren't part of a requirement set. If your add-in requires any of these methods, use the <Methods> and <Method> elements in the add-in's manifest to declare that they are required, or perform the runtime check using an if
statement. For more information, see Specify Office applications and API requirements.
Method name | Minimum Office application support |
---|---|
Bindings.addFromPromptAsync |
|
Document.getFilePropertiesAsync |
|
Document.getProjectFieldAsync |
|
Document.getResourceFieldAsync |
|
Document.getSelectedResourceAsync |
|
Document.getSelectedTaskAsync |
|
Document.getSelectedViewAsync |
|
Document.getTaskAsync |
|
Document.getTaskFieldAsync |
|
Document.goToByIdAsync |
|
Settings.addHandlerAsync |
|
Settings.refreshAsync |
|
Settings.removeHandlerAsync |
|
TableBinding.clearFormatsAsync |
|
TableBinding.setFormatsAsync |
|
TableBinding.setTableOptionsAsync |
|
See also
Office Add-ins