PowerPoint.Interfaces.ShapeCollectionLoadOptions interface

表示形状的集合。

属性

$all

指定加载选项将 $all 加载所有标量属性 ((如 Range.address) ),但不会加载导航属性 ((如 Range.format.fill.color) )。

adjustments

对于集合中的每个项目:返回一个 Adjustments 对象,其中包含此形状中所有调整的调整值。

altTextDescription

对于集合中的每个项目: 形状的替换文字说明。

替换文字提供形状中包含的信息的替代的基于文本的表示形式。 这些信息对于可能无法看到或理解形状的有视觉或认知障碍的人很有用。

altTextTitle

对于集合中的每个项目: 形状的替换文字标题。

替换文字提供形状中包含的信息的替代的基于文本的表示形式。 这些信息对于可能无法看到或理解形状的有视觉或认知障碍的人很有用。 可以向残障人士朗读标题,并用于确定他们是否希望听到对内容的描述。

creationId

对于集合中的每个项目: 获取形状的创建 ID。 如果形状没有创建 ID,则返回 null

fill

对于集合中的每个项:返回此形状的填充格式。

group

For EACH ITEM in the collection: 返回与形状关联的 。ShapeGroup 如果形状类型不是 ,则此方法将 group返回 GeneralException 错误。

height

对于集合中的每个项目: 指定形状的高度(以磅为单位)。 使用负值设置时引发 InvalidArgument 异常。

id

对于集合中的每个项目: 获取形状的唯一 ID。

isDecorative

For EACH ITEM in the collection: 表示形状是否为装饰性。

装饰物增加了视觉趣味,但没有信息 (例如风格边框) 。 使用屏幕阅读器的 People 会听到这些是装饰性的,因此他们知道他们没有遗漏任何重要信息。

left

对于集合中的每个项目:从形状左侧到幻灯片左侧的距离(以磅为单位)。

level

For EACH ITEM in the collection: 返回指定形状的级别。

  • 级别为 0 表示形状不属于组。

  • 级别为 1 表示形状是顶层组的一部分。

  • 级别大于 1 表示形状是嵌套组。

lineFormat

对于集合中的每个项:返回此形状的线条格式。

name

For EACH ITEM in the collection: 指定此形状的名称。

parentGroup

For EACH ITEM in the collection: 返回此形状的父组。 如果形状不属于组,则此方法将返回 GeneralException 错误。

placeholderFormat

For EACH ITEM in the collection: 返回专门应用于此占位符的属性。 如果形状类型不是 ,则此方法将 placeholder返回 GeneralException 错误。

rotation

对于集合中的每个项目: 指定形状绕 z 轴的旋转(以度为单位)。 正值表示顺时针旋转,负值表示逆时针旋转。

textFrame

对于集合中的每个项目: 返回此 .Shape InvalidArgument如果形状不支持 TextFrame.

top

对于集合中的每个项目:从形状的顶部边缘到幻灯片的顶部边缘的距离(以磅为单位)。

type

对于集合中的每个项目: 返回此形状的类型。 有关详细信息,请参阅 PowerPoint.ShapeType

visible

For EACH ITEM in the collection: 指定形状是否可见。

width

For EACH ITEM in the collection: 指定形状的宽度(以磅为单位)。 使用负值设置时引发 InvalidArgument 异常。

zOrderPosition

对于集合中的每个项:返回形状的 z 顺序位置,0 表示顺序堆栈的底部。 幻灯片上的每种形状都有唯一的 z 顺序,但每张幻灯片都有唯一的 z 顺序堆栈,因此不同幻灯片上的两个形状可能具有相同的 z 顺序编号。

属性详细信息

$all

指定加载选项将 $all 加载所有标量属性 ((如 Range.address) ),但不会加载导航属性 ((如 Range.format.fill.color) )。

$all?: boolean;

属性值

boolean

adjustments

对于集合中的每个项目:返回一个 Adjustments 对象,其中包含此形状中所有调整的调整值。

adjustments?: PowerPoint.Interfaces.AdjustmentsLoadOptions;

属性值

注解

API 集:PowerPointApi 1.10

altTextDescription

对于集合中的每个项目: 形状的替换文字说明。

替换文字提供形状中包含的信息的替代的基于文本的表示形式。 这些信息对于可能无法看到或理解形状的有视觉或认知障碍的人很有用。

altTextDescription?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.10

altTextTitle

对于集合中的每个项目: 形状的替换文字标题。

替换文字提供形状中包含的信息的替代的基于文本的表示形式。 这些信息对于可能无法看到或理解形状的有视觉或认知障碍的人很有用。 可以向残障人士朗读标题,并用于确定他们是否希望听到对内容的描述。

altTextTitle?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.10

creationId

对于集合中的每个项目: 获取形状的创建 ID。 如果形状没有创建 ID,则返回 null

creationId?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.10

fill

对于集合中的每个项:返回此形状的填充格式。

fill?: PowerPoint.Interfaces.ShapeFillLoadOptions;

属性值

注解

API 集:PowerPointApi 1.4

group

For EACH ITEM in the collection: 返回与形状关联的 。ShapeGroup 如果形状类型不是 ,则此方法将 group返回 GeneralException 错误。

group?: PowerPoint.Interfaces.ShapeGroupLoadOptions;

属性值

注解

API 集:PowerPointApi 1.8

height

对于集合中的每个项目: 指定形状的高度(以磅为单位)。 使用负值设置时引发 InvalidArgument 异常。

height?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.4

id

对于集合中的每个项目: 获取形状的唯一 ID。

id?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.3

isDecorative

For EACH ITEM in the collection: 表示形状是否为装饰性。

装饰物增加了视觉趣味,但没有信息 (例如风格边框) 。 使用屏幕阅读器的 People 会听到这些是装饰性的,因此他们知道他们没有遗漏任何重要信息。

isDecorative?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.10

left

对于集合中的每个项目:从形状左侧到幻灯片左侧的距离(以磅为单位)。

left?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.4

level

For EACH ITEM in the collection: 返回指定形状的级别。

  • 级别为 0 表示形状不属于组。

  • 级别为 1 表示形状是顶层组的一部分。

  • 级别大于 1 表示形状是嵌套组。

level?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.8

lineFormat

对于集合中的每个项:返回此形状的线条格式。

lineFormat?: PowerPoint.Interfaces.ShapeLineFormatLoadOptions;

属性值

注解

API 集:PowerPointApi 1.4

name

For EACH ITEM in the collection: 指定此形状的名称。

name?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.4

parentGroup

For EACH ITEM in the collection: 返回此形状的父组。 如果形状不属于组,则此方法将返回 GeneralException 错误。

parentGroup?: PowerPoint.Interfaces.ShapeLoadOptions;

属性值

注解

API 集:PowerPointApi 1.8

placeholderFormat

For EACH ITEM in the collection: 返回专门应用于此占位符的属性。 如果形状类型不是 ,则此方法将 placeholder返回 GeneralException 错误。

placeholderFormat?: PowerPoint.Interfaces.PlaceholderFormatLoadOptions;

属性值

注解

API 集:PowerPointApi 1.8

rotation

对于集合中的每个项目: 指定形状绕 z 轴的旋转(以度为单位)。 正值表示顺时针旋转,负值表示逆时针旋转。

rotation?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.10

textFrame

对于集合中的每个项目: 返回此 .Shape InvalidArgument如果形状不支持 TextFrame.

textFrame?: PowerPoint.Interfaces.TextFrameLoadOptions;

属性值

注解

API 集:PowerPointApi 1.4

top

对于集合中的每个项目:从形状的顶部边缘到幻灯片的顶部边缘的距离(以磅为单位)。

top?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.4

type

对于集合中的每个项目: 返回此形状的类型。 有关详细信息,请参阅 PowerPoint.ShapeType

type?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.4

visible

For EACH ITEM in the collection: 指定形状是否可见。

visible?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.10

width

For EACH ITEM in the collection: 指定形状的宽度(以磅为单位)。 使用负值设置时引发 InvalidArgument 异常。

width?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.4

zOrderPosition

对于集合中的每个项:返回形状的 z 顺序位置,0 表示顺序堆栈的底部。 幻灯片上的每种形状都有唯一的 z 顺序,但每张幻灯片都有唯一的 z 顺序堆栈,因此不同幻灯片上的两个形状可能具有相同的 z 顺序编号。

zOrderPosition?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.8