PowerPoint.Interfaces.CustomPropertyData interface

一个接口,用于描述通过调用 customProperty.toJSON()返回的数据。

属性

key

唯一标识自定义属性的字符串。

type

用于自定义属性的值的类型。

value

自定义属性的值。 如果值为字符串,则最大长度为 255 个字符。 较大的字符串会导致操作失败并出现 InvalidArgument 错误。

属性详细信息

key

唯一标识自定义属性的字符串。

key?: string;

属性值

string

注解

[ API 集:PowerPointApi 1.7 ]

type

用于自定义属性的值的类型。

type?: PowerPoint.DocumentPropertyType | "Boolean" | "Date" | "Number" | "String";

属性值

PowerPoint.DocumentPropertyType | "Boolean" | "Date" | "Number" | "String"

注解

[ API 集:PowerPointApi 1.7 ]

value

自定义属性的值。 如果值为字符串,则最大长度为 255 个字符。 较大的字符串会导致操作失败并出现 InvalidArgument 错误。

value?: boolean | Date | number | string;

属性值

boolean | Date | number | string

注解

[ API 集:PowerPointApi 1.7 ]