AutoShape
AutoShape
概述
AutoShape 是 Aspose.Slides FOSS 为 Python 提供的一个类。继承自:GeometryShape、IAutoShape。
表示一个 AutoShape。
此类提供 2 个方法,用于在 Python 程序中处理 AutoShape 对象。可用的方法包括:__init__、add_text_frame。在安装了面向 Python 的 Aspose.Slides FOSS 包后,所有公共成员对任何 Python 应用程序均可访问。属性:adjustments、alternative_text、alternative_text_title、as_i_geometry_shape、as_i_presentation_component、as_i_slide_component,以及另外 28 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
shape_type | ShapeType | 读写 | 获取或设置形状类型。 |
text_frame | ITextFrame | 读取 | 返回 TextFrame 对象用于 AutoShape。 |
is_text_box | bool | 读取 | 指定形状是否为文本框。 |
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 演示组件。 |
is_text_holder | bool | 读取 | 确定形状是否为 TextHolder。 |
placeholder | IPlaceholder | 读取 | 返回形状的占位符。 |
custom_data | ICustomData | 读取 | 返回形状的自定义数据。 |
shape_style | IShapeStyle | 读取 | 返回形状的样式对象。 |
adjustments | IAdjustValueCollection | 读取 | 返回形状的调整值集合。 |
方法
| 签名 | 描述 |
|---|---|
add_text_frame(text) → ITextFrame | 添加一个包含给定文本的TextFrame并返回ITextFrame |
__init__() | 初始化一个空形状。 |