TextFrame
#include <Aspose/Slides/Foss/text_frame.h>class TextFrame| —————————— | ————————- | ———————————- |
ITextFrame interfejs
| —————————— | —————————– |
| text() | Dohvati tekstualni sadržaj. |
| set_text(const std::string&) | Postavite tekstualni sadržaj. |
ITextFrameFormat interfejs
| ——————————————————— | ————————- | ———————————— |
| margin_left() / set_margin_left(double) | Čitanje/Upis | Leva margina u tačkama. |
| margin_right() / set_margin_right(double) | Čitanje/Upis | Desna margina u tačkama. |
| margin_top() / set_margin_top(double) | Čitanje/Upis | Gornja margina u tačkama. |
| margin_bottom() / set_margin_bottom(double) | Čitanje/Pisanje | Donja margina u tačkama. |
| wrap_text() / set_wrap_text(NullableBool) | Čitanje/Pisanje | Da li se tekst prelama. |
| anchoring_type() / set_anchoring_type(TextAnchorType) | Čitanje/Pisanje | Vertikalno sidrenje teksta. |
| center_text() / set_center_text(NullableBool) | Čitanje/Pisanje | Da li je tekst centriran vertikalno. |
Primer upotrebe
#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");