每个 DesktopFormFactor 定义都包含 FunctionFile 元素和一个或多个 ExtensionPoint 元素。
https://docs.microsoft.com/zh-cn/office/dev/add-ins/reference/manifest/desktopformfactor
子元素
| 元素 | 必需 | 说明 |
|---|---|---|
| ExtensionPoint | 是 | 定义外接程序公开功能的位置。 |
| FunctionFile | 是 | 包含 JavaScript 函数的文件的 URL。 |
| GetStarted | 否 | 定义在 Word、Excel 或 PowerPoint 中安装外接程序时显示的标注。 |
| SupportsSharedFolders | 否 | 定义 Outlook 加载项在代理应用场景中是否可用。 默认情况下设置为 false 。 |
<DesktopFormFactor>
<FunctionFile resid="residDesktopFuncUrl" />
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<!-- information about this extension point -->
</ExtensionPoint>
<!-- You can define more than one ExtensionPoint element as needed -->
</DesktopFormFactor>