Shape — Aspose.Slides FOSS for C++ API Reference
Properties Shape class 是所有幻灯片上可视元素的基类。. AutoShape 扩展 Shape 具有几何形状和可选的 TextFrame.
Properties: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/shape.h>
#include <Aspose/Slides/Foss/auto_shape.h>Properties: include/Aspose/Slides/Foss/shape.h, include/Aspose/Slides/Foss/auto_shape.h
形状属性
| Properties | Properties | Properties |
|---|---|---|
x() / set_x(double) | 读/写 | X 位置(单位:点)。. |
y() / set_y(double) | 读/写 | Y 位置(单位:点)。. |
width() / set_width(double) | 读/写 | 宽度(单位:点)。. |
height() / set_height(double) | 读/写 | 以点为单位的高度。. |
rotation() / set_rotation(double) | 读/写 | 旋转角度(单位:度)。. |
hidden() / set_hidden(bool) | 读/写 | 形状是否隐藏。. |
shape_type() / set_shape_type(ShapeType) | 读/写 | 形状的几何类型。. |
z_order_position() | Properties | Z 顺序堆叠位置。. |
unique_id() | Properties | 此形状的唯一标识符。. |
office_interop_shape_id() | Properties | Office 互操作形状 ID。. |
is_grouped() | Properties | 形状是否属于一个组。. |
is_text_holder() | Properties | 形状是否可以容纳文本。. |
is_decorative() / set_is_decorative(bool) | 读取/写入 | 形状是否为装饰性(可访问性)。. |
connection_site_count() | Properties | 连接点的数量。. |
set_name(const std::string&) | Properties | 设置形状名称。. |
set_alternative_text(const std::string&) | Properties | 为可访问性设置替代文本。. |
set_alternative_text_title(const std::string&) | Properties | 设置替代文本标题。. |
形状格式属性
| Properties | Properties | Properties |
|---|---|---|
fill_format() | FillFormat& | 此形状的填充设置。. |
line_format() | LineFormat& | 线条/边框设置。. |
effect_format() | EffectFormat& | 视觉效果设置。. |
three_d_format() | ThreeDFormat& | 3-D effect settings. |
frame() | ShapeFrame | 位置和大小框架。. |
AutoShape
AutoShape 继承自 GeometryShape (继承自 Shape)并添加了一个 TextFrame.
| Properties | Properties | Properties |
|---|---|---|
text_frame() | Properties | 返回 the TextFrame 用于此自动形状。. |
geometry_shape() | Properties | 返回几何形状属性。. |
IShape 接口
Properties IShape 接口定义公共契约。关键方法来自 IShape:
| Properties | Properties |
|---|---|
set_raw_frame(const ShapeFrame&) | 直接设置原始帧。. |
set_frame(const ShapeFrame&) | 设置计算帧。. |