Connector
Connector
概述
Connector 是 Aspose.Slides FOSS 中用于 Python 的一个类。继承自:GeometryShape、IConnector。
表示一个连接器。
此类提供 2 个方法,用于在 Python 程序中操作 Connector 对象。可用的方法包括:__init__、reroute。在安装 Aspose.Slides FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:adjustments、alternative_text、alternative_text_title、as_i_geometry_shape、as_i_presentation_component、as_i_slide_component,以及另外 31 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
is_text_holder | bool | 读取 | 获取 is 文本持有者。 |
placeholder | `` | 读取 | 获取占位符。 |
custom_data | `` | 读取 | 获取自定义数据。 |
shape_style | IShapeStyle | 读取 | 获取形状样式。 |
shape_type | ShapeType | 读写 | 返回或设置 AutoShape 类型。 |
adjustments | IAdjustValueCollection | 读取 | 获取调整。 |
connector_lock | IConnectorLock | 读取 | 返回连接器的锁。 |
start_shape_connected_to | IShape | 读写 | 返回或设置要将连接器的起点附加到的形状。 |
end_shape_connected_to | IShape | 读写 | 返回或设置要将连接器的终点附加到的形状。 |
start_shape_connection_site_index | int | 读写 | 返回或设置起始形状的连接点索引。 |
end_shape_connection_site_index | int | 读写 | 返回或设置端形状的连接点索引。 |
as_i_geometry_shape | IGeometryShape | 读取 | 获取 as i 几何形状。 |
raw_frame | IShapeFrame | 读写 | 返回或设置原始形状帧的属性。 |
frame | IShapeFrame | 读写 | 返回或设置形状框架的属性。 |
line_format | ILineFormat | 读取 | 返回包含形状线条格式属性的 LineFormat 对象。 |
three_d_format | IThreeDFormat | 读取 | 返回包含形状 3d 效果属性的 ThreeDFormat 对象。 |
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 | 读写 | 获取或设置“标记为装饰性”选项,读/写。 |
is_grouped | bool | 读取 | 确定形状是否已分组。 |
slide | IBaseSlide | 读取 | 返回形状的父幻灯片。 |
presentation | IPresentation | 读取 | 返回幻灯片的父演示文稿。 |
as_i_slide_component | ISlideComponent | 读取 | 获取 as i slide 组件。 |
as_i_presentation_component | IPresentationComponent | 读取 | 获取 as i 演示组件。 |
方法
| 签名 | 描述 |
|---|---|
reroute() | 根据连接的形状重新计算连接器的边界框。 |
__init__() | 初始化一个空形状。 |