TextFrame
Overview
TextFrame is a class in Aspose.Slides FOSS for C++.
Represents a TextFrame containing paragraphs of text.
This class declares 24 methods for TextFrame objects in C++ programs.
Available methods include: TextFrame, as_i_presentation_component, as_i_slide_component, init_internal, paragraphs, parent_cell, parent_shape, presentation, set_parent_cell, set_parent_shape, set_slide, set_text, and 3 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Accessor methods: TextFrame.
Accessor Methods
| Name | Type | Access | Description |
|---|---|---|---|
TextFrame | TextFrame | Read | Gets the text frame. |
Methods
| Signature | Description |
|---|---|
TextFrame() → TextFrame | Creates a new empty TextFrame instance |
TextFrame() | |
paragraphs() → IParagraphCollection | Returns the list of all paragraphs in a frame. Read-only. |
paragraphs() → IParagraphCollection | Calls paragraphs on this TextFrame instance. |
text() → std::string | Returns the plain text for a TextFrame (paragraphs joined by newlines). |
set_text(value: std::string) | Sets the plain text, splitting on line breaks into separate paragraphs. |
text_frame_format() → ITextFrameFormat | Returns the formatting object for this TextFrame. Read-only. |
text_frame_format() → ITextFrameFormat | Calls text_frame_format on this TextFrame instance. |
parent_shape() → IShape | Returns the parent shape, or nullptr. Read-only. |
parent_shape() → IShape | Calls parent_shape on this TextFrame instance. |
parent_cell() → ICell | Returns the parent cell, or nullptr. Read-only. |
parent_cell() → ICell | Calls parent_cell on this TextFrame instance. |
as_i_slide_component() → ISlideComponent | Returns this as ISlideComponent. Read-only. |
as_i_slide_component() → ISlideComponent | Calls as_i_slide_component on this TextFrame instance. |
slide() → IBaseSlide | Calls slide on this TextFrame instance. |
slide() → IBaseSlide | |
as_i_presentation_component() → IPresentationComponent | Calls as_i_presentation_component on this TextFrame instance. |
as_i_presentation_component() → IPresentationComponent | |
presentation() → IPresentation | Calls presentation on this TextFrame instance. |
presentation() → IPresentation | |
set_slide(slide: IBaseSlide) | Sets the parent slide for this text frame. |
set_parent_shape(shape: IShape) | Sets the parent shape for this text frame. |
set_parent_cell(cell: ICell) | Sets the parent cell for this text frame. |
init_internal(txbody_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide) | Initializes internal XML-backed state for this text frame. |