Excel.LinkedEntityId interface
链接的实体 ID 对象表示一组属性,这些属性描述用于查找此服务定义的值的服务和区域性。
注解
使用方
- Excel.LinkedEntityCellValue: id
- Excel.LinkedEntityCellValueLoadedEventArgs: id
- Excel.LinkedEntityDataDomainCollection: loadLinkedEntityCellValue
- Excel.Workbook: getLinkedEntityCellValue
示例
// Loads a linked entity cell value using a LinkedEntityId.
async function loadLinkedEntity(domainId: string, entityId: string) {
await Excel.run(async (context) => {
// Specify the linked entity ID to load.
const linkedEntityId: Excel.LinkedEntityId = {
entityId: entityId,
domainId: domainId,
serviceId: 268436224, // Service ID used by Excel to identify linked entity cell values associated with an add-in.
culture: "en-US",
};
// Load the linked entity cell value.
context.workbook.linkedEntityDataDomains.loadLinkedEntityCellValue(linkedEntityId);
await context.sync();
});
}
属性
| culture | 表示用于创建此 |
| domain |
表示特定于用于创建 的服务的 |
| entity |
表示特定于用于创建 的服务的 |
| service |
表示用于创建 的服务 |