AutoShape

概述

AutoShape 是 Aspose.Slides 为 C++ 提供的 FOSS 中的一个类。

表示一个 AutoShape。

此类提供 13 个方法,用于在 C++ 程序中处理 AutoShape 对象。可用的方法包括:AutoShape、GeometryShape、TextFrame、add_text_frame、as_i_geometry_shape、init_internal、is_text_box、text_frame。在安装 Aspose.Slides FOSS for C++ 包后,所有公共成员均可被任何 C++ 应用程序访问。属性:GeometryShape、TextFrame。

属性

名称类型访问描述
TextFrameTextFrame读取获取文本框。
GeometryShapeGeometryShape读取获取几何形状。

方法

签名描述
TextFrame() → TextFrame属性提供对形状的 TextFrame 对象的访问
TextFrame() → TextFrame
GeometryShape() → GeometryShape返回定义此 AutoShape 几何形状的 GeometryShape
GeometryShape() → GeometryShape
AutoShape()
AutoShape(type: ShapeType, x: double, y: double, w: double, h: double)
text_frame() → TextFrame返回 AutoShape 的 TextFrame,如果不存在则返回 nullptr.
text_frame() → TextFrame返回 AutoShape 的 TextFrame,如果不存在则返回 nullptr.
is_text_box() → bool指定形状是否为文本框。
as_i_geometry_shape() → GeometryShape将此形状作为 GeometryShape 引用返回。
as_i_geometry_shape() → GeometryShape将此形状作为 GeometryShape 引用返回。
add_text_frame(text: std::string_view) → TextFrame添加一个带有给定文本的文本框架,替换任何已有的。由 \r\n、\r 或 \n 分隔的行将创建单独的段落。
init_internal(xml_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide)从 XML 元素初始化 AutoShape,包括文本帧检测。

另请参阅

 中文