GroupShape
GroupShape
概述
GroupShape 是 Aspose.Slides FOSS 中用于 Python 的一个类。继承自:Shape,IGroupShape。
表示幻灯片中一组形状。
此类提供 4 种方法,用于在 Python 程序中处理 GroupShape 对象。可用的方法包括:__init__、as_i_shape、group_shape_lock、shapes。在安装了 Aspose.Slides FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:alternative_text、alternative_text_title、as_i_presentation_component、as_i_shape、as_i_slide_component、connection_site_count,以及另外 25 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
is_text_holder | bool | 读取 | 获取是否为文本占位符。 |
placeholder | IPlaceholder | 读取 | 获取占位符。 |
custom_data | ICustomData | 读取 | 获取自定义数据。 |
group_shape_lock | IGroupShapeLock | 读取 | 返回形状的锁。 |
shapes | IShapeCollection | 读取 | 返回组中形状的集合。 |
as_i_shape | IShape | 读取 | 允许获取基础 IShape 接口。 |
raw_frame | IShapeFrame | 读写 | 返回或设置原始形状框架的属性。 |
frame | IShapeFrame | 读写 | 返回或设置形状框架的属性。 |
line_format | ILineFormat | 读取 | 返回包含形状线条格式属性的 LineFormat 对象。 |
three_d_format | IThreeDFormat | 读取 | 返回 ThreeDFormat 对象,该对象包含形状的 3D 效果属性。 |
effect_format | IEffectFormat | 读取 | 返回 EffectFormat 对象,其中包含应用于形状的像素效果。 |
fill_format | IFillFormat | 读取 | 返回包含形状填充格式属性的 FillFormat 对象。 |
hidden | bool | 读写 | 确定形状是否已隐藏。 |
z_order_position | int | 读取 | 返回形状在 z-order 中的位置。 |
connection_site_count | int | 读取 | 返回形状上的连接点数量。 |
rotation | float | 读写 | 返回或设置指定形状绕 z 轴旋转的角度(度数)。 |
x | float | 读写 | 获取或设置形状左上角的 x 坐标,单位为点。 |
y | float | 读写 | 获取或设置形状左上角的 y 坐标,单位为点。 |
width | float | 读写 | 获取或设置形状的宽度,以点为单位。 |
height | float | 读写 | 获取或设置形状的高度,以点为单位。 |
unique_id | int | 读取 | 返回一个内部的、面向演示范围的标识符,供加载项或其他代码使用。 |
office_interop_shape_id | int | 读取 | 返回一个针对幻灯片范围的唯一标识符,该标识符在形状的整个生命周期内保持不变,并且允许 PowerPoint 或互操作代码能够从文档中的任何位置可靠地引用该形状。 |
alternative_text | str | 读写 | 返回或设置与形状关联的替代文本。 |
alternative_text_title | str | 读写 | 返回或设置与形状关联的替代文本标题。 |
name | str | 读写 | 返回或设置形状的名称。 |
is_decorative | bool | 读写 | 获取或设置 “Mark as decorative” 选项。读取/写入。 |
is_grouped | bool | 读取 | 确定该形状是否已分组。 |
slide | IBaseSlide | 读取 | 返回形状的父幻灯片。 |
presentation | IPresentation | 读取 | 返回幻灯片的父演示文稿。 |
as_i_slide_component | ISlideComponent | 读取 | 获取 as i slide 组件。 |
as_i_presentation_component | IPresentationComponent | 读取 | 获取 as i 演示组件。 |
方法
| 签名 | 描述 |
|---|---|
__init__() | |
group_shape_lock() → IGroupShapeLock | 返回形状的锁。 |
shapes() → IShapeCollection | 返回组中形状的集合。 |
as_i_shape() → IShape | 允许获取基础 IShape 接口。 |