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

NameTypeAccessDescription
TextFrameTextFrameReadGets the text frame.
GeometryShapeGeometryShapeReadGets the geometry shape.

Methods

SignatureDescription
TextFrame() → TextFrameProperty provides access to the shape’s TextFrame object
TextFrame() → TextFrame
GeometryShape() → GeometryShapeReturns the GeometryShape defining this AutoShape’s geometry
GeometryShape() → GeometryShape
AutoShape()
AutoShape(type: ShapeType, x: double, y: double, w: double, h: double)
text_frame() → TextFrameReturns the TextFrame for the AutoShape, or nullptr if none.
text_frame() → TextFrameReturns the TextFrame for the AutoShape, or nullptr if none.
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() → GeometryShapeReturns this shape as a GeometryShape reference.
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