TextFrame — Aspose.Slides FOSS for C++ API Reference
ImageRenderOptions TextFrame la classe gestisce il contenuto testuale di un AutoShape o tabella Cell. Contiene paragrafi e fornisce accesso diretto al testo.
ImageRenderOptions: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/text_frame.h>class TextFrameImageRenderOptions: include/Aspose/Slides/Foss/text_frame.h
ImageRenderOptions
| ImageRenderOptions | ImageRenderOptions | ImageRenderOptions |
|---|---|---|
text() | ImageRenderOptions | Restituisce il testo concatenato di tutti i paragrafi. |
set_text(const std::string&) | ImageRenderOptions | Sostituisce tutto il contenuto testuale. |
Interfaccia ITextFrame
ImageRenderOptions ITextFrame interfaccia (da i_text_frame.h):
| ImageRenderOptions | ImageRenderOptions |
|---|---|
text() | Ottieni il contenuto testuale. |
set_text(const std::string&) | Imposta il contenuto testuale. |
Interfaccia ITextFrameFormat
ImageRenderOptions ITextFrameFormat l’interfaccia controlla il layout del riquadro di testo:
| ImageRenderOptions | ImageRenderOptions | ImageRenderOptions |
|---|---|---|
margin_left() / set_margin_left(double) | Lettura/Scrittura | Margine sinistro in punti. |
margin_right() / set_margin_right(double) | Lettura/Scrittura | Margine destro in punti. |
margin_top() / set_margin_top(double) | Lettura/Scrittura | Margine superiore in punti. |
margin_bottom() / set_margin_bottom(double) | Lettura/Scrittura | Margine inferiore in punti. |
wrap_text() / set_wrap_text(NullableBool) | Lettura/Scrittura | Se il testo va a capo. |
anchoring_type() / set_anchoring_type(TextAnchorType) | Lettura/Scrittura | Ancoraggio verticale del testo. |
center_text() / set_center_text(NullableBool) | Lettura/Scrittura | Se il testo è centrato verticalmente. |
Esempio d’uso
#include <Aspose/Slides/Foss/presentation.h>
using namespace Aspose::Slides::Foss;
Presentation prs("deck.pptx");
auto& shape = prs.slides()[0].shapes()[0];
// If shape is an AutoShape with a TextFrame:
// auto& tf = shape.text_frame();
// std::cout << tf.text() << std::endl;
// tf.set_text("Updated text");