AutoShape

Overview

AutoShape is a class in Aspose.Slides FOSS for C++.

Represents an AutoShape.

This class declares 13 methods for 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. Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Accessor methods: GeometryShape, TextFrame.

Accessor Methods

NameTypeAccessDescription
TextFrameTextFrameReadGets the text frame.
GeometryShapeGeometryShapeReadGets the geometry shape.

Methods

SignatureDescription
TextFrame() → TextFrameReturns the TextFrame for the AutoShape, or nullptr if none.
TextFrame() → TextFrameProperty provides access to the shape’s TextFrame object
GeometryShape() → GeometryShapeReturns this shape as a GeometryShape reference.
GeometryShape() → GeometryShapeReturns the GeometryShape defining this AutoShape’s geometry
AutoShape()Calls AutoShape on this AutoShape instance.
AutoShape(type: ShapeType, x: double, y: double, w: double, h: double)Calls AutoShape(type, x, y, w, h) on this AutoShape instance.
text_frame() → TextFrameReturns the TextFrame for the AutoShape, or nullptr if none.
text_frame() → TextFrameCalls text_frame on this AutoShape instance.
is_text_box() → boolSpecifies if the shape is a text box.
as_i_geometry_shape() → GeometryShapeReturns this shape as a GeometryShape reference.
as_i_geometry_shape() → GeometryShapeCalls as_i_geometry_shape on this AutoShape instance.
add_text_frame(text: std::string_view) → TextFrameAdds 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.

See Also

 English