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


形状属性

PropertiesPropertiesProperties
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()PropertiesZ 顺序堆叠位置。.
unique_id()Properties此形状的唯一标识符。.
office_interop_shape_id()PropertiesOffice 互操作形状 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设置替代文本标题。.

形状格式属性

PropertiesPropertiesProperties
fill_format()FillFormat&此形状的填充设置。.
line_format()LineFormat&线条/边框设置。.
effect_format()EffectFormat&视觉效果设置。.
three_d_format()ThreeDFormat&3-D effect settings.
frame()ShapeFrame位置和大小框架。.

AutoShape

AutoShape 继承自 GeometryShape (继承自 Shape)并添加了一个 TextFrame.

PropertiesPropertiesProperties
text_frame()Properties返回 the TextFrame 用于此自动形状。.
geometry_shape()Properties返回几何形状属性。.

IShape 接口

Properties IShape 接口定义公共契约。关键方法来自 IShape:

PropertiesProperties
set_raw_frame(const ShapeFrame&)直接设置原始帧。.
set_frame(const ShapeFrame&)设置计算帧。.

另见

 中文