IGroupShape
概述
IGroupShape 是 Aspose.Slides FOSS 中用于 Java 的接口。继承自:IShape。
表示幻灯片上的一组形状。
此接口提供 43 个方法,用于在 Java 程序中处理 IGroupShape 对象。可用的方法包括:asIPresentationComponent、getAlternativeText、getAlternativeTextTitle、getAsISlideComponent、getCNvPr、getConnectionSiteCount、getCustomData、getEffectFormat、getFillFormat、getFrame、getHeight、getLineFormat,以及另外 31 个方法。所有公共成员在安装了 Aspose.Slides FOSS for Java 包后,可供任何 Java 应用程序访问。属性:alternativeText、alternativeTextTitle、asISlideComponent、cNvPr、connectionSiteCount、customData,以及另外 24 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
shapes | IShapeCollection | 读取 | 返回组内的形状集合。 |
textHolder | boolean | 读取 | 确定该形状是否为文本占位符。 |
placeholder | IPlaceholder | 读取 | 返回此形状的占位符。 |
customData | ICustomData | 读取 | 返回形状的自定义数据。 |
rawFrame | IShapeFrame | 读取 | 返回原始形状框架的属性。 |
frame | IShapeFrame | 读取 | 返回形状框架的属性。 |
lineFormat | ILineFormat | 读取 | 返回此形状的线条格式。 |
threeDFormat | IThreeDFormat | 读取 | 返回此形状的 3-D 格式。 |
effectFormat | IEffectFormat | 读取 | 返回此形状的效果格式。 |
fillFormat | IFillFormat | 读取 | 返回此形状的填充格式。 |
hidden | boolean | 读取 | 确定形状是否隐藏。 |
zOrderPosition | int | 读取 | 返回形状在 Z 顺序中的位置。 |
connectionSiteCount | int | 读取 | 返回形状上的连接点数量。 |
rotation | double | 读取 | 返回形状的旋转角度(单位:度)。 |
x | double | 读取 | 获取形状左上角的 x 坐标,单位为点。 |
y | double | 读取 | 获取形状左上角的 y 坐标,单位为点。 |
width | double | 读取 | 获取形状的宽度,单位为点。 |
height | double | 读取 | 获取形状的高度(单位为点)。 |
alternativeText | String | 读取 | 返回或设置与形状关联的替代文本。 |
alternativeTextTitle | String | 读取 | 返回或设置与形状关联的替代文本的标题。 |
name | String | 读取 | 返回或设置形状的名称。 |
decorative | boolean | 读取 | 获取或设置 ‘Mark as decorative’ 选项。 |
uniqueId | int | 读取 | 返回一个内部的、演示范围的标识符。 |
officeInteropShapeId | int | 读取 | 返回一个幻灯片范围的唯一标识符,在形状的整个生命周期内保持不变。 |
grouped | boolean | 读取 | 确定形状是否已分组。 |
asISlideComponent | ISlideComponent | 读取 | 允许获取基 {@link ISlideComponent} 接口。 |
shapeType | ShapeType | 读取 | 获取 AutoShape 类型。 |
cNvPr | Element | 读取 | 返回此形状的 {@code cNvPr} 元素,或 {@code null}。 |
slide | IBaseSlide | 读取 | 返回父幻灯片。 |
presentation | IPresentation | 读取 | 返回包含此组件的演示文稿。 |
方法
| 签名 | 描述 |
|---|---|
getShapes() → IShapeCollection | 返回组内的形状集合。 |
isTextHolder() → boolean | 确定形状是否为文本占位符。 |
getPlaceholder() → IPlaceholder | 返回此形状的占位符。 |
getCustomData() → ICustomData | 返回形状的自定义数据。 |
getRawFrame() → IShapeFrame | 返回原始形状帧的属性。 |
setRawFrame(value: IShapeFrame) | 设置 raw shape frame 的属性。 |
getFrame() → IShapeFrame | 返回形状框架的属性。 |
setFrame(value: IShapeFrame) | 设置形状框架的属性。 |
getLineFormat() → ILineFormat | 返回此形状的线条格式。 |
getThreeDFormat() → IThreeDFormat | 返回此形状的 3-D 格式。 |
getEffectFormat() → IEffectFormat | 返回此形状的效果格式。 |
getFillFormat() → IFillFormat | 返回此形状的填充格式。 |
isHidden() → boolean | 确定形状是否隐藏。 |
setHidden(value: boolean) | 设置形状是否隐藏。 |
getZOrderPosition() → int | 返回形状在 Z 顺序中的位置。 |
getConnectionSiteCount() → int | 返回形状的连接点数量。 |
getRotation() → double | 返回形状的旋转角度(以度为单位)。 |
setRotation(rotation: double) | 设置形状的旋转角度(单位为度)。 |
getX() → double | 获取形状左上角的 x 坐标,单位为点。 |
setX(x: double) | 设置形状左上角的 x 坐标,单位为点。 |
getY() → double | 获取形状左上角的 y 坐标,单位为点。 |
setY(y: double) | 设置形状左上角的 y 坐标(以点为单位)。 |
getWidth() → double | 获取形状的宽度(以点为单位)。 |
setWidth(width: double) | 设置形状的宽度,以点为单位。 |
getHeight() → double | 获取形状的高度,单位为点。 |
setHeight(height: double) | 设置形状的高度(单位为点)。 |
getAlternativeText() → String | 返回或设置与形状关联的替代文本。 |
setAlternativeText(value: String) | 设置与形状关联的替代文本。 |
getAlternativeTextTitle() → String | 返回或设置与形状关联的替代文本的标题。 |
setAlternativeTextTitle(value: String) | 设置与形状关联的替代文本标题。 |
getName() → String | 返回或设置形状的名称。 |
setName(value: String) | 设置形状的名称。 |
isDecorative() → boolean | 获取或设置 ‘Mark as decorative’ 选项。 |
setDecorative(value: boolean) | 设置 'Mark as decorative' 选项。 |
getUniqueId() → int | 返回一个内部的、面向演示范围的标识符。 |
getOfficeInteropShapeId() → int | 返回一个针对幻灯片范围的唯一标识符,该标识符在形状的整个生命周期内保持不变。 |
isGrouped() → boolean | 确定形状是否已分组。 |
getAsISlideComponent() → ISlideComponent | 允许获取基 {@link ISlideComponent} 接口。 |
getShapeType() → ShapeType | 获取 AutoShape 类型。 |
getCNvPr() → Element | 返回此形状的 {@code cNvPr} 元素,或 {@code null}。 |
getSlide() → IBaseSlide | 返回父幻灯片。 |
asIPresentationComponent() → IPresentationComponent | 返回基 {@link IPresentationComponent} 接口。 |
getPresentation() → IPresentation | 返回包含此组件的演示文稿。 |