Excel.LinkedEntityId interface

链接的实体 ID 对象表示一组属性,用于描述用于查找此服务定义值的服务和区域性。

注解

API 集:ExcelApi 1.16

使用方

示例

// 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

表示使用了哪种语言区域性来创建此项 CellValue

domainId

表示特定于用于创建 CellValue服务的域。

entityId

表示特定于用于创建 CellValue.

serviceId

表示 CellValue创建 .

属性详细信息

culture

表示使用了哪种语言区域性来创建此项 CellValue

culture: string;

属性值

string

注解

API 集:ExcelApi 1.16

domainId

表示特定于用于创建 CellValue服务的域。

domainId?: string;

属性值

string

注解

API 集:ExcelApi 1.16

entityId

表示特定于用于创建 CellValue.

entityId: string;

属性值

string

注解

API 集:ExcelApi 1.16

serviceId

表示 CellValue创建 .

serviceId: number;

属性值

number

注解

API 集:ExcelApi 1.16