AutoShape
Overview
AutoShape is a class in Aspose.Slides FOSS for C++.
Represents an AutoShape.
This class provides 13 methods for working with AutoShape objects in C++ programs.
Available methods include: AutoShape, GeometryShape, TextFrame, add_text_frame, as_i_geometry_shape, init_internal, is_text_box, text_frame.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Properties: GeometryShape, TextFrame.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
TextFrame | TextFrame | Read | Gets the text frame. |
GeometryShape | GeometryShape | Read | Gets the geometry shape. |
Methods
| Signature | Description |
|---|---|
TextFrame() → TextFrame | Property provides access to the shape’s TextFrame object |
TextFrame() → TextFrame | |
GeometryShape() → GeometryShape | Returns the GeometryShape defining this AutoShape’s geometry |
GeometryShape() → GeometryShape | |
AutoShape() | |
AutoShape(type: ShapeType, x: double, y: double, w: double, h: double) | |
text_frame() → TextFrame | Returns the TextFrame for the AutoShape, or nullptr if none. |
text_frame() → TextFrame | Returns the TextFrame for the AutoShape, or nullptr if none. |
is_text_box() → bool | Specifies if the shape is a text box. |
as_i_geometry_shape() → GeometryShape | Returns this shape as a GeometryShape reference. |
as_i_geometry_shape() → GeometryShape | Returns this shape as a GeometryShape reference. |
add_text_frame(text: std::string_view) → TextFrame | Adds a text frame with the given text, replacing any existing one. Lines separated by \r\n, \r, or \n create separate paragraphs. |
init_internal(xml_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide) | Initializes the AutoShape from an XML element, including text frame detection. |